From: Jonas Fonseca Date: Thu, 3 Apr 2008 13:24:44 +0000 (+0200) Subject: Do not load repository references when acting as a pager X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fbe047c9fd2c848e9eeb22bc2055dc8f52d3b7c6;p=tig.git Do not load repository references when acting as a pager It will cause git ls-remote to print an error message. --- diff --git a/tig.c b/tig.c index c41f2b2..39cc340 100644 --- a/tig.c +++ b/tig.c @@ -5797,7 +5797,7 @@ main(int argc, char *argv[]) die("Failed to initialize character set conversion"); } - if (load_refs() == ERR) + if (*opt_git_dir && load_refs() == ERR) die("Failed to load refs."); for (i = 0; i < ARRAY_SIZE(views) && (view = &views[i]); i++)