@matheusbsbs / matheus-bagliano / commits / acb39f64c6
Fork 0

for-each-reflog: not having $GIT_DIR/logs directory is not an error.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Feb 12, 2007 at 23:21 UTC acb39f64c6f5f0a3220da787fda9badad9f57554
1 file changed +1 -1
refs.c
+1 -1
@@ -1251,7 +1251,7 @@ static int do_for_each_reflog(const char *base, each_ref_fn fn, void *cb_data)
1251 free(log);
1252 closedir(dir);
1253 }
1254 - else
1254 + else if (*base)
1255 return errno;
1256 return retval;
1257 }