On Wed, Nov 3, 2010 at 11:13 PM, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote: > Paul Drews wrote: >> Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes: > >>> Another one: create a .git file with this line and put it in worktree's >>> topdir >>> >>> gitdir: /path/to/real/git.dir >>> >>> See gitrepository-layout.txt. >> >> Ooh! ÂThat would be my favorite, since it's a documented legal usage. > > By the way, .git symlinks have been historically supported and are not > likely to break, either. ÂMaybe gitrepository-layout should grow to > include a section on the repository search. > >> Unfortunately, although the rebase scenario works that way a local >> "git clone" doesn't work: >> >> # git clone /abs/path/to/proj >> Cloning into proj... >> fatal: failed to open '/abs/path/to/proj/objects': No such file or directory > > enter_repo() never learned .git file support, though I see no reason it should > be hard to add. Also get_repo_path(). By the way if you work on this, please move enter_repo() to setup.c. Keeping it close to setup_* functions may increase the chance that it also gets fixed along with setup_*. Another thing. "git init" should probably learn to create .git file. Each time I use .git file I have to look at man page^W^Wsource code again to know its syntax. -- 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