On Wed, Oct 27, 2010 at 11:30 PM, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote: > Nguyen Thai Ngoc Duy wrote: >> 2010/10/27 Nguyán ThÃi Ngác Duy <pclouds@xxxxxxxxx>: > >>> +# 2. .git file is relative to git_dir. .git file is basically symlink >>> +# Â Âin disguise. >> >> This is not completely followed in my tests. If .git is a true >> symlink, its link is relative to .git itself. When .git is a file, it >> would be more difficult to calculate path relative to .git (you can't >> chdir to a file). > > I'm not sure I understand: > > Âgit init repo > Âcd repo > Âmv .git .git.real > Âln -s .git.real .git > > The path ".git.real" is relative to "repo/", not "repo/.git/", no? Ah, ok. I was confused after writing all those tests. -- Duy -- 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