Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/guess-repo-name-regression-fix'
[gitweb.git]
/
builtin
/
clone.c
diff --git
a/builtin/clone.c
b/builtin/clone.c
index 303a3a7eb6cdc383230e38a5a0a6979fa385b6eb..bf451995a3c7bc3d8bd322c1a3355d8dc3dd80fa 100644
(file)
--- a/
builtin/clone.c
+++ b/
builtin/clone.c
@@
-174,7
+174,8
@@
static char *guess_dir_name(const char *repo, int is_bundle, int is_bare)
/*
* Strip .{bundle,git}.
*/
- strip_suffix(start, is_bundle ? ".bundle" : ".git" , &len);
+ len = end - start;
+ strip_suffix_mem(start, &len, is_bundle ? ".bundle" : ".git");
if (is_bare)
dir = xstrfmt("%.*s.git", (int)len, start);