Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add API access to shortlog
[gitweb.git]
/
builtin-gc.c
diff --git
a/builtin-gc.c
b/builtin-gc.c
index ac34788c89c315d036ab041afbac91a0302e6d6a..ad4a75eedddb1dfc0ecef2b536727970335673f9 100644
(file)
--- a/
builtin-gc.c
+++ b/
builtin-gc.c
@@
-37,7
+37,7
@@
static const char *argv_rerere[] = {"rerere", "gc", NULL};
static int gc_config(const char *var, const char *value)
{
if (!strcmp(var, "gc.packrefs")) {
- if (!strcmp(value, "notbare"))
+ if (
value &&
!strcmp(value, "notbare"))
pack_refs = -1;
else
pack_refs = git_config_bool(var, value);