From acb39f64c6f5f0a3220da787fda9badad9f57554 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 12 Feb 2007 23:21:34 -0800 Subject: [PATCH] for-each-reflog: not having $GIT_DIR/logs directory is not an error. Signed-off-by: Junio C Hamano --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refs.c b/refs.c index 9e3dfb3c9..638770378 100644 --- a/refs.c +++ b/refs.c @@ -1251,7 +1251,7 @@ static int do_for_each_reflog(const char *base, each_ref_fn fn, void *cb_data) free(log); closedir(dir); } - else + else if (*base) return errno; return retval; } -- 2.30.2