Skip to content

Commit 6bd3424

Browse files
committed
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
2 parents c0cca58 + 9ef5e2a commit 6bd3424

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

branch.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ static int setup_tracking(const char *new_ref, const char *orig_ref,
114114
struct tracking tracking;
115115
int config_flags = quiet ? 0 : BRANCH_CONFIG_VERBOSE;
116116

117-
if (strlen(new_ref) > 1024 - 7 - 7 - 1)
118-
return error(_("Tracking not set up: name too long: %s"),
119-
new_ref);
120-
121117
memset(&tracking, 0, sizeof(tracking));
122118
tracking.spec.dst = (char *)orig_ref;
123119
if (for_each_remote(find_tracked_branch, &tracking))

0 commit comments

Comments
 (0)