GitRoot

Craft your forge, Build your project, Grow your community freely
 1---
 2id: "4924"
 3priority: 50
 4assignee: null
 5status: v0.5.0
 6---
 7
 8# Push an empty branch should work
 9
10When we push an empty branch, server don't accept it.
11
12## Reproduce
13
14`git checkout -b myBranch && git push origin myBranch`
15
16## Investigation
17
18Multiple problems here:
19
20- go-git seams to not create the branch in the temporary storer
21- gitroot try to run plugin on the previous commit (has it don't find an old commit)
22
23## Linked to
24
25[force push main need commit](./6bf9-force-push-main-need-commit.md)
26
27## After
28
29Think to reactive tests in [test-suite](../app/testsuite/runtest.sh) find the two `# TODO`