Make tig handle GIT_DIR better
authorJonas Fonseca <fonseca@diku.dk>
Wed, 20 Dec 2006 22:31:36 +0000 (23:31 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 20 Dec 2006 22:32:09 +0000 (23:32 +0100)
commit337d7377fb08b547d5827328765f6c7d64ff3628
tree3101e9df04f3ffaf901876520243e01098d5b343
parent832a47c4563804cd3cbb42983832113bea88b291
Make tig handle GIT_DIR better

The problem was caused by load_refs() calling "git-ls-remote ." completely
ignoring GIT_DIR. This is fixed by using git-rev-parse --git-dir to extract
the path to the requested git repository.
tig.c