Upgraded today to Windows Git 2.5.0 (from msys Git 1.6.something) and now I can't rebase. A question on SO hints at a Git installation conflict:http://stackoverflow.com/questions/11292057/git-windows-git-pull-cannot-be-used-without-a-working-tree
...but I have removed the prior version, including one straggler DLL after a reboot, and don't have any environment variables pointing places they shouldn't.
The only twist I can think of is that I'm using a separate Git directory from the working tree, but other commands (checkout, add, commit, diff...) work. Only git-am seems to be unhappy.
Console output follows:
>C:\core\guidewire\Dev\2.4>git checkout fhcf-assumptiondate
>Already on 'fhcf-assumptiondate'
>C:\core\guidewire\Dev\2.4>git rebase master
>First, rewinding head to replay your work on top of it...
>fatal: C:\Program Files\Git\mingw64/libexec/git-core\git-am cannot be used without a working tree.
I looked in the git-sh-setup script which appears to be the only place that 'working tree' message appears (although with compiled binaries I can't be sure), and there's a test using 'rev-parse --is-inside-work-tree'. So I made sure I'm under the folder with .git in it, and:
> Volume in drive C is System (Local)
> Volume Serial Number is D4EC-4ED4
> Directory of C:\core\guidewire\Dev\2.4
>08/04/2015 21:16 27 .git
> 1 File(s) 27 bytes
> 0 Dir(s) 155,451,965,440 bytes free
>C:\core\guidewire\Dev\2.4>git rev-parse --is-inside-work-tree
...Yeah, that's not right. Where should I look next?