We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fe48cb + c3072c6 commit 01cbd9eCopy full SHA for 01cbd9e
refspec.c
@@ -49,6 +49,8 @@ static int parse_refspec(struct refspec_item *item, const char *refspec, int fet
49
size_t rlen = strlen(++rhs);
50
is_glob = (1 <= rlen && strchr(rhs, '*'));
51
item->dst = xstrndup(rhs, rlen);
52
+ } else {
53
+ item->dst = NULL;
54
}
55
56
llen = (rhs ? (rhs - lhs - 1) : strlen(lhs));
0 commit comments