diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-15 17:06:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-15 15:26:37 -0700 |
commit | c9261977441b4e4b9b718f20026f1074a5d20ec3 (patch) | |
tree | e19f093d61f1f7dc7a5bb8a810bfb8912e031c12 | |
parent | d5bb0d207adfe110655c45768262b4c02e189736 (diff) | |
download | git-c9261977441b4e4b9b718f20026f1074a5d20ec3.tar.gz |
resolve_gitlink_ref_recursive(): drop arbitrary refname length limit
This limit was added in
0ebde32 (Add 'resolve_gitlink_ref()' helper function - 2007-04-09)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | refs.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1281,7 +1281,6 @@ static struct ref_dir *get_loose_refs(struct ref_cache *refs) /* We allow "recursive" symbolic refs. Only within reason, though */ #define MAXDEPTH 5 -#define MAXREFLEN (1024) /* * Called by resolve_gitlink_ref_recursive() after it failed to read @@ -1310,7 +1309,7 @@ static int resolve_gitlink_ref_recursive(struct ref_cache *refs, char buffer[128], *p; char *path; - if (recursion > MAXDEPTH || strlen(refname) > MAXREFLEN) + if (recursion > MAXDEPTH) return -1; path = *refs->name ? git_path_submodule(refs->name, "%s", refname) |