]> git.ipfire.org Git - thirdparty/git.git/blobdiff - environment.c
Merge branch 'nd/shallow-clone'
[thirdparty/git.git] / environment.c
index b73b39d72f71dd5e2b846147ce64e0a1ae96d18b..4a3437d8a61256029655f25c76256f27a6189248 100644 (file)
@@ -177,7 +177,7 @@ const char *get_git_namespace(void)
 
 const char *strip_namespace(const char *namespaced_ref)
 {
-       if (prefixcmp(namespaced_ref, get_git_namespace()) != 0)
+       if (!starts_with(namespaced_ref, get_git_namespace()))
                return NULL;
        return namespaced_ref + namespace_len;
 }