From: Junio C Hamano Date: Tue, 13 Feb 2007 07:21:34 +0000 (-0800) Subject: for-each-reflog: not having $GIT_DIR/logs directory is not an error. X-Git-Tag: v1.5.0~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/acb39f64c6f5f0a3220da787fda9badad9f57554 for-each-reflog: not having $GIT_DIR/logs directory is not an error. Signed-off-by: Junio C Hamano --- diff --git a/refs.c b/refs.c index 9e3dfb3c97..6387703789 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; }