summaryrefslogtreecommitdiff
path: root/builtin/push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-07 15:18:17 -0800
committerJunio C Hamano <gitster@pobox.com>2014-03-07 15:18:28 -0800
commite3f118594683b075d70fb479a81613f614a7b1f1 (patch)
treeac5d0413c27634940d2a73c77fab30ec7e250a43 /builtin/push.c
parent2687ffdeb76816a1645a5c3e3c7aaf654cc923bc (diff)
parent666c90b6290dae0f4d3672a2b0caf6dea67dd1e3 (diff)
downloadgit-e3f118594683b075d70fb479a81613f614a7b1f1.tar.gz
Merge branch 'cc/starts-n-ends-with-endgame'
prefixcmp/suffixcmp are gone.
Diffstat (limited to 'builtin/push.c')
-rw-r--r--builtin/push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/push.c b/builtin/push.c
index cd6c1646a5..f8dfea41e1 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -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;