aboutsummaryrefslogtreecommitdiff
path: root/branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-18 13:50:48 -0700
committerJunio C Hamano <gitster@pobox.com>2014-03-18 13:50:48 -0700
commit6bd34241760125481e170bff40b278a41f3d80db (patch)
tree58842457e26b31bae799dd5a7c4f09d10d1aee50 /branch.c
parentc0cca589fd41bab8548de6e777f389a1d55baf0b (diff)
parent9ef5e2a7223fbabf6a29946c1c120bc2c3c6cf86 (diff)
downloadgit-6bd34241760125481e170bff40b278a41f3d80db.tar.gz
git-6bd34241760125481e170bff40b278a41f3d80db.tar.xz
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
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/branch.c b/branch.c
index 723a36bc5..05feaff78 100644
--- a/branch.c
+++ b/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))