2009/7/20 Geoffrey Irving <irving@xxxxxxx>: > git 1.6.3.3 has a bug related to .git file support and aliases. > Specifically, if you make an alias for status and call it from a > subdirectory, git status chdirs into the true .git dir but then > chdir's back to the wrong place in order to run the lstats for status. > The result is that git status thinks all files have disappeared. > > Here's a self-contained test script: > > #!/bin/bash > set -x > > # make a simple repository > mkdir repo > cd repo > git init > mkdir a > echo content > a/b > git add a/b > git commit -m "a commit" > > # replace the gitdir with a gitfile > mv .git ../repo.git > echo gitdir: `pwd`.git > .git > > # normal git status works > cd a > git status > > # an alias for git status fails > git config alias.st status > git st I suspect that the $GIR_DIR and .git file works equally in this aspect, so you should specify where is the workdir in .git/config with respect the repository: git config core.workdir `pwd` HTH, Santi -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html