Merge branch 'us/printf-not-echo'
[gitweb.git] / builtin / push.c
index cd6c1646a5fa4009664f5c96a38d7c8df3fcd467..f8dfea41e1ad8b6d888c1a2adc13eee87083491e 100644 (file)
@@ -58,7 +58,7 @@ static const char *map_refspec(const char *ref,
        }
 
        if (push_default == PUSH_DEFAULT_UPSTREAM &&
-           !prefixcmp(matched->name, "refs/heads/")) {
+           starts_with(matched->name, "refs/heads/")) {
                struct branch *branch = branch_get(matched->name + 11);
                if (branch->merge_nr == 1 && branch->merge[0]->src) {
                        struct strbuf buf = STRBUF_INIT;