"fatal: reference is not a tree: <sha>" on git checkout
I was hitting this several times now, e.g. here:
https://ci.appveyor.com/project/tknerr/vagrant-appveyor-testing/bui...
git clone -q --depth=1 --branch=master git://github.com/tknerr/vagrant-appveyor-testing.git C:\projects\vagrant-appveyor-testing
git checkout -qf 68d37132a66e00582127b69323e521e3ae2240ec
fatal: reference is not a tree: 68d37132a66e00582127b69323e521e3ae2240ec
Command exited with code 128
Builds were triggered via the Github integration / after commit hook.
Any ideas? Is this a known issue?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 28 Dec, 2014 02:03 AM
I think the problem is that it's toooo shallow. You should be very careful with
--depth=1because by the time build start there might be a new commit on top of it.2 Posted by ukio on 28 Dec, 2014 02:18 AM
Thanks, that was the culprit indeed. I just removed depth completely for this project...
ukio closed this discussion on 28 Dec, 2014 02:18 AM.