summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bdbba9)
raw | patch | inline | side by side (parent: 3bdbba9)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 3 Apr 2008 23:51:27 +0000 (01:51 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 3 Apr 2008 23:51:27 +0000 (01:51 +0200) |
Use symbolic-ref instead.
tig.c | patch | blob | history |
index 04c607f12f1d11bda63f8890de9c440abbd447f8..a5d6a5e0f8cfa947c34567425f58241bc6410ad5 100644 (file)
--- a/tig.c
+++ b/tig.c
load_repo_info(void)
{
int result;
- FILE *pipe = popen("git rev-parse --git-dir --is-inside-work-tree "
- " --show-cdup --symbolic-full-name HEAD 2>/dev/null", "r");
+ FILE *pipe = popen("(git rev-parse --git-dir --is-inside-work-tree "
+ " --show-cdup; git symbolic-ref HEAD) 2>/dev/null", "r");
/* XXX: The line outputted by "--show-cdup" can be empty so
* initialize it to something invalid to make it possible to