Closed
Description
Hello,
I am running Git 2.9.0 x64 on Windows 7 and git is run under ConEmu 160612 [x64].
Problem arise in mintty too.
$ git version
git version 2.9.0.windows.1
I tried to generate a bundle based on two branch (sync and develop) which are at the same point.
Git fails because the bundle is empty, but it does not remove the lock file because there is still an open handle on it:
git bundle create zeta-bash.2016-06-19.develop.1.home.bundle sync..develop
fatal: Refusing to create empty bundle.
Unlink of file 'E:/git/bundles/zeta-bash.2016-06-19.develop.1.home.bundle.lock' failed. Should I try again? (y/n) n
warning: unable to unlink E:/git/bundles/zeta-bash.2016-06-19.develop.1.home.bundle.lock: Invalid argument
Note: it works on any repository, simply use something like master..master.
I think the problem is here: https://github.com/git-for-windows/git/blob/master/bundle.c#L449
I've forked the git repo: https://github.com/glhez/git/commit/c9d30827cac71e953c5286c431ab5007ff9a1792 but did not have time to test it yet.
Metadata
Metadata
Assignees
Labels
No labels