mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
Merge branch 'jn/branch-lift-unnecessary-name-length-limit'
* jn/branch-lift-unnecessary-name-length-limit: branch.c: delete size check of newly tracked branch names
This commit is contained in:
commit
6bd3424176
4
branch.c
4
branch.c
|
@ -114,10 +114,6 @@ static int setup_tracking(const char *new_ref, const char *orig_ref,
|
|||
struct tracking tracking;
|
||||
int config_flags = quiet ? 0 : BRANCH_CONFIG_VERBOSE;
|
||||
|
||||
if (strlen(new_ref) > 1024 - 7 - 7 - 1)
|
||||
return error(_("Tracking not set up: name too long: %s"),
|
||||
new_ref);
|
||||
|
||||
memset(&tracking, 0, sizeof(tracking));
|
||||
tracking.spec.dst = (char *)orig_ref;
|
||||
if (for_each_remote(find_tracked_branch, &tracking))
|
||||
|
|
Loading…
Reference in a new issue