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.tokkee.org/?a=commitdiff_plain;h=acb39f64c6f5f0a3220da787fda9badad9f57554;p=git.git 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 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; }