aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-28 10:41:16 -0700
committerJunio C Hamano <gitster@pobox.com>2014-07-28 10:41:16 -0700
commitdad2e7f4bf6e2f01bf2b589490441343a0f8f6f7 (patch)
treefb37d0cc33e1c2be7855e4350719a9179bd807b4 /refs.c
parent49f1cb93a2f11845cfa2723611a729d3d7f02f0d (diff)
downloadgit-dad2e7f4bf6e2f01bf2b589490441343a0f8f6f7.tar.gz
git-dad2e7f4bf6e2f01bf2b589490441343a0f8f6f7.tar.xz
Revert "Merge branch 'dt/refs-check-refname-component-sse-fix'"
This reverts commit 779c99fd68dcdaff7d996a1985914154a36a272c, reversing changes made to df4d7d56461c19361a6f32b633e850c7ba6e55e6.
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/refs.c b/refs.c
index 84b9070b8..3b030e62b 100644
--- a/refs.c
+++ b/refs.c
@@ -153,7 +153,6 @@ int check_refname_format(const char *refname, int flags)
const __m128i tilde_lb = _mm_set1_epi8('~' - 1);
int component_count = 0;
- int orig_flags = flags;
if (refname[0] == 0 || refname[0] == '/') {
/* entirely empty ref or initial ref component */
@@ -179,7 +178,7 @@ int check_refname_format(const char *refname, int flags)
* End-of-page; fall back to slow method for
* this entire ref.
*/
- return check_refname_format_bytewise(refname, orig_flags);
+ return check_refname_format_bytewise(refname, flags);
tmp = _mm_loadu_si128((__m128i *)cp);
tmp1 = _mm_loadu_si128((__m128i *)(cp + 1));