]> git.ipfire.org Git - thirdparty/git.git/blobdiff - remote.c
l10n: Fix more typos in the Swedish translations
[thirdparty/git.git] / remote.c
index 0e9459cc0675d2f232b1c1fda62080d04aa88ec5..ae040432037f7463233c5add8257b17ace365b23 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1194,7 +1194,7 @@ static int match_explicit(struct ref *src, struct ref *dst,
        case 1:
                break;
        case 0:
-               if (!memcmp(dst_value, "refs/", 5))
+               if (starts_with(dst_value, "refs/"))
                        matched_dst = make_linked_ref(dst_value, dst_tail);
                else if (is_null_sha1(matched_src->new_sha1))
                        error("unable to delete '%s': remote ref does not exist",