In a hook script for Git, I am trying to run a command like this..
please refer to(git --git-dir not working as expected)
git log --name-status --git-dir="C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\CMS\.git" --work-tree="C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\CMS"
when I run this command I am getting the following error.
fatal: Not a git repository (or any of the parent directories): .git
Is there any thing wrong in the command I am using?