Issue with handles being kept when there are uncommitted changes
By Xhmik... on February 12, 2013 19:16 (imported from Google Code)
I will use https://github.com/XhmikosR/notepad2-mod.git as an example, but this should happen with any repository.
What steps will reproduce the problem?
- Check out https://github.com/XhmikosR/notepad2-mod.git
- Change any file from the repo but don't commit your changes
- Run git gc --aggressive --prune=now
What is the expected output? What do you see instead?
I'd expect git gc to finish without errors but instead:
H:\progs\Compiling\notepad2-mod>git gc --aggressive --prune=now
Counting objects: 6334, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6297/6297), done.
Writing objects: 100% (6334/6334), done.
Total 6334 (delta 4917), reused 1417 (delta 0)
mv: cannot move I will use https://github.com/XhmikosR/notepad2-mod.git as an example, but this should happen with any repository.
What steps will reproduce the problem?
- Check out https://github.com/XhmikosR/notepad2-mod.git
- Change any file from the repo but don't commit your changes
- Run git gc --aggressive --prune=now
What is the expected output? What do you see instead?
I'd expect git gc to finish without errors but instead:
H:\progs\Compiling\notepad2-mod>git gc --aggressive --prune=now
Counting objects: 6334, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6297/6297), done.
Writing objects: 100% (6334/6334), done.
Total 6334 (delta 4917), reused 1417 (delta 0)
mv: cannot move /h/progs/Compiling/notepad2-mod/.git/objects/pack/pack-07357538e0dcef27f046f22888c658c500b17a36.pack' to I will use https://github.com/XhmikosR/notepad2-mod.git as an example, but this should happen with any repository.
What steps will reproduce the problem?
- Check out https://github.com/XhmikosR/notepad2-mod.git
- Change any file from the repo but don't commit your changes
- Run git gc --aggressive --prune=now
What is the expected output? What do you see instead?
I'd expect git gc to finish without errors but instead:
H:\progs\Compiling\notepad2-mod>git gc --aggressive --prune=now
Counting objects: 6334, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6297/6297), done.
Writing objects: 100% (6334/6334), done.
Total 6334 (delta 4917), reused 1417 (delta 0)
mv: cannot move `/h/progs/Compiling/notepad2-mod/.git/objects/pack/pack-07357538e0dcef27f046f22888c658c500b17a36.pack' to /h/progs/Compiling/notepad2-mod/.git/objects/pack/old-pack-07357538e0dcef27f046f22888c658c500b17a36.pack'
error: failed to run repack
What version of TortoiseGit and msysgit are you using? On
what operating system?
Windows 7 64-bit, TortoiseGit 1.8.1.0 , git version 1.8.1.msysgit.1
If I revert the changes and wait a little bit (perhaps for tgit to refresh the icons?) then git gc completes successfully.