chiark
/
gitweb
/
~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make tig handle GIT_DIR better
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index c622183e18e6268d6c849154f69ceabb1257c10c..ebd7abeafa5c368da25dcdab6aae76355d645b99 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-81,7
+81,7
@@
static size_t utf8_length(const char *string, size_t max_width, int *coloffset,
#define SCALE_SPLIT_VIEW(height) ((height) * 2 / 3)
#define TIG_LS_REMOTE \
#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"
#define TIG_DIFF_CMD \
"git show --root --patch-with-stat --find-copies-harder -B -C %s 2>/dev/null"