Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pull: pass --allow-unrelated-histories to "git merge"
[gitweb.git]
/
builtin
/
fetch.c
diff --git
a/builtin/fetch.c
b/builtin/fetch.c
index 17f40e10f6960e73fa1bff0024c7e1a09a1d8503..683f08ec91295e2fe56c372497685f40121f3b32 100644
(file)
--- a/
builtin/fetch.c
+++ b/
builtin/fetch.c
@@
-1107,7
+1107,7
@@
static int fetch_one(struct remote *remote, int argc, const char **argv)
if (argc > 0) {
int j = 0;
int i;
- refs = xcalloc(
argc + 1
, sizeof(const char *));
+ refs = xcalloc(
st_add(argc, 1)
, sizeof(const char *));
for (i = 0; i < argc; i++) {
if (!strcmp(argv[i], "tag")) {
i++;