Ticket #2127 (closed defect: fixed)
Git 1.7.7: Recent change causes buildbot to always fail to fetch from git
|Reported by:||cdavis5x||Owned by:|
When buildbot updates a repository using Git, one of the things it does is:
$ git branch -M <branch-name>
where <branch-name> is the target branch. Even if the branch already existed, this worked fine...
...up until Git 1.7.7, which for some reason changed this. Now when you try to rename the current branch, git branch -M throws this error:
fatal: Cannot force update the current branch.
Unless this bug is fixed, IT WILL NOT BE POSSIBLE TO USE BUILDBOT WITH GIT >= 1.7.7. Luckily for you all, I went ahead and fixed this for you. (Watch for an upcoming pull request.)