summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 832a47c)
raw | patch | inline | side by side (parent: 832a47c)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 20 Dec 2006 22:31:36 +0000 (23:31 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 20 Dec 2006 22:32:09 +0000 (23:32 +0100) |
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.
ignoring GIT_DIR. This is fixed by using git-rev-parse --git-dir to extract
the path to the requested git repository.
tig.c | patch | blob | history |
index c622183e18e6268d6c849154f69ceabb1257c10c..ebd7abeafa5c368da25dcdab6aae76355d645b99 100644 (file)
--- a/tig.c
+++ b/tig.c
#define SCALE_SPLIT_VIEW(height) ((height) * 2 / 3)
#define TIG_LS_REMOTE \
- "git ls-remote . 2>/dev/null"
+ "git ls-remote $(git rev-parse --git-dir) 2>/dev/null"
#define TIG_DIFF_CMD \
"git show --root --patch-with-stat --find-copies-harder -B -C %s 2>/dev/null"