Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/test-framework-updates'
[gitweb.git]
/
environment.c
diff --git
a/environment.c
b/environment.c
index 0a15349cfe38ab76b1d1cc94878cec2a8d754bbd..3c76905b9ff1eac8f627c1e7a5c034ab421ac2e4 100644
(file)
--- a/
environment.c
+++ b/
environment.c
@@
-171,7
+171,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;
}