Signed-off-by: Nguyễn Thái Ngọc Duy <pclo...@gmail.com> --- environment.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/environment.c b/environment.c index 3c76905..bc2d916 100644 --- a/environment.c +++ b/environment.c @@ -171,9 +171,7 @@ const char *get_git_namespace(void) const char *strip_namespace(const char *namespaced_ref) { - if (!starts_with(namespaced_ref, get_git_namespace())) - return NULL; - return namespaced_ref + namespace_len; + return skip_prefix(namespaced_ref, get_git_namespace()); } static int git_work_tree_initialized; -- 1.8.5.1.208.g019362e -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html