diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:31:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:31:57 -0700 |
commit | b05fc49adc7fc288ce5b8eebb576b0142297982d (patch) | |
tree | b60f6b0d11b82d89f623bbb67b565e1f31e34289 /branch.c | |
parent | 26e53f8ac02a5929e4b614010afaa9787f567698 (diff) | |
parent | b0f49ff13033621af06af742e3615fe905833562 (diff) | |
download | git-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |