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

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2007-02-12 23:21:34 -08:00
parent 25b51e2c7f
commit acb39f64c6

2
refs.c
View File

@ -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;
}