Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
block-sha1: split the different "hacks" to be individually selected
[gitweb.git]
/
builtin-clone.c
diff --git
a/builtin-clone.c
b/builtin-clone.c
index d2b0757e538b9fbbcc20e48174886bf4f8b036d9..32dea74d78381ca1dffdac7f88e45a89a9825104 100644
(file)
--- a/
builtin-clone.c
+++ b/
builtin-clone.c
@@
-141,7
+141,7
@@
static char *guess_dir_name(const char *repo, int is_bundle, int is_bare)
if (is_bare) {
struct strbuf result = STRBUF_INIT;
strbuf_addf(&result, "%.*s.git", (int)(end - start), start);
- dir = strbuf_detach(&result,
0
);
+ dir = strbuf_detach(&result,
NULL
);
} else
dir = xstrndup(start, end - start);
/*