Merge branch 'rs/fetch-simplify-with-starts-with'
Code simplification. * rs/fetch-simplify-with-starts-with: fetch: convert strncmp() with strlen() to starts_with()maint
commit
6f74483667
|
@ -448,9 +448,8 @@ static void filter_prefetch_refspec(struct refspec *rs)
|
||||||
continue;
|
continue;
|
||||||
if (!rs->items[i].dst ||
|
if (!rs->items[i].dst ||
|
||||||
(rs->items[i].src &&
|
(rs->items[i].src &&
|
||||||
!strncmp(rs->items[i].src,
|
starts_with(rs->items[i].src,
|
||||||
ref_namespace[NAMESPACE_TAGS].ref,
|
ref_namespace[NAMESPACE_TAGS].ref))) {
|
||||||
strlen(ref_namespace[NAMESPACE_TAGS].ref)))) {
|
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
free(rs->items[i].src);
|
free(rs->items[i].src);
|
||||||
|
|
Loading…
Reference in New Issue