Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-rebase.txt: address confusion between --no-ff vs --force-rebase
[gitweb.git]
/
refspec.c
diff --git
a/refspec.c
b/refspec.c
index ada7854f7a6a55a783cf90574e1d759f5c3a661f..78edc48ae8eebcfdbfd87172e7ef4ead6c3fff85 100644
(file)
--- a/
refspec.c
+++ b/
refspec.c
@@
-49,6
+49,8
@@
static int parse_refspec(struct refspec_item *item, const char *refspec, int fet
size_t rlen = strlen(++rhs);
is_glob = (1 <= rlen && strchr(rhs, '*'));
item->dst = xstrndup(rhs, rlen);
+ } else {
+ item->dst = NULL;
}
llen = (rhs ? (rhs - lhs - 1) : strlen(lhs));