Merge branch 'jh/checkout-auto-tracking' into maint
"git branch --track" had 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
This commit is contained in:
3
branch.c
3
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)
|
||||
|
Reference in New Issue
Block a user