From fbe047c9fd2c848e9eeb22bc2055dc8f52d3b7c6 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 3 Apr 2008 15:24:44 +0200 Subject: [PATCH] Do not load repository references when acting as a pager It will cause git ls-remote to print an error message. --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- 2.30.2