Merge branch 'rs/simple-cleanups' into maint
Code cleanups. * rs/simple-cleanups: sha1_name: use strlcpy() to copy strings pretty: use starts_with() to check for a prefix for-each-ref: use skip_prefix() to avoid duplicate string comparison connect: use strcmp() for string comparison
This commit is contained in:
@ -157,8 +157,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
|
||||
server_capabilities = xstrdup(name + name_len + 1);
|
||||
}
|
||||
|
||||
if (extra_have &&
|
||||
name_len == 5 && !memcmp(".have", name, 5)) {
|
||||
if (extra_have && !strcmp(name, ".have")) {
|
||||
sha1_array_append(extra_have, old_sha1);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user