summaryrefslogtreecommitdiff
path: root/branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-20 12:31:57 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-20 12:31:57 -0700
commitb05fc49adc7fc288ce5b8eebb576b0142297982d (patch)
treeb60f6b0d11b82d89f623bbb67b565e1f31e34289 /branch.c
parent26e53f8ac02a5929e4b614010afaa9787f567698 (diff)
parentb0f49ff13033621af06af742e3615fe905833562 (diff)
downloadgit-b05fc49adc7fc288ce5b8eebb576b0142297982d.tar.gz
Merge branch 'jh/checkout-auto-tracking'
Fix a minor regression in v1.8.3.2 and later that made it impossible to base your local work on anything but a local branch of the upstream repository you are tracking from. * jh/checkout-auto-tracking: t3200: fix failure on case-insensitive filesystems branch.c: Relax unnecessary requirement on upstream's remote ref name t3200: Add test demonstrating minor regression in 41c21f2 Refer to branch.<name>.remote/merge when documenting --track t3200: Minor fix when preparing for tracking failure t2024: Fix &&-chaining and a couple of typos
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/branch.c b/branch.c
index 546c4b4406..d31b354d48 100644
--- a/branch.c
+++ b/branch.c
@@ -203,8 +203,7 @@ static int check_tracking_branch(struct remote *remote, void *cb_data)
struct refspec query;
memset(&query, 0, sizeof(struct refspec));
query.dst = tracking_branch;
- return !(remote_find_tracking(remote, &query) ||
- prefixcmp(query.src, "refs/heads/"));
+ return !remote_find_tracking(remote, &query);
}
static int validate_remote_tracking_branch(char *ref)