Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
checkout: call a single commit "it" intead of "them"
[gitweb.git]
/
shallow.c
diff --git
a/shallow.c
b/shallow.c
index 04ea816e0e8f2ed2829ed4ceca8d031a867e2cda..d8bf40ad4bed3bc846bb71945f1c2bfce76a202d 100644
(file)
--- a/
shallow.c
+++ b/
shallow.c
@@
-22,7
+22,7
@@
void set_alternate_shallow_file(const char *path, int override)
if (alternate_shallow_file && !override)
return;
free(alternate_shallow_file);
- alternate_shallow_file =
path ? xstrdup(path) : NULL
;
+ alternate_shallow_file =
xstrdup_or_null(path)
;
}
int register_shallow(const unsigned char *sha1)