Git "unable to determine absolute path of git directory"

Viewed 17805

I'm a git newbie and am having problems trying to get the latest version of a remote project:

S:\dev\prj\myprj [master]> git pull
/usr/libexec/git-core/git-sh-setup: line 266: cd: .git: No such file or directory
Unable to determine absolute path of git directory

It was working fine until today and strangely I don't think I've changed anything since it last worked fine.

This is on Windows 7. My project is on an encrypted drive (S:) and git is on C:

S:\dev\prj\myprj [master]> git --exec-path    
C:\Users\matt\AppData\Local\GitHub\PortableGit_656cc1ef6d04f06ddf8b2f5bedbac921caed3b62/libexec/git-core

Manually doing a cd to the exec directory above works fine (even though there are mixed slash types).

Any ideas how to even start working out what has gone wrong?

4 Answers
Related