Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fast-export: Do parent rewriting to avoid dropping relevant commits
[gitweb.git]
/
builtin-clone.c
diff --git
a/builtin-clone.c
b/builtin-clone.c
index 5c46496a43a8fe2f91b395563b266e79a8b94429..2ceacb7b3f34c78e64ed047833d8af5a061f065f 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);
/*