Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Allow branch names that end with ".lock"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:43

"Shawn O. Pearce" [off-list ref] writes:
quoted hunk
diff --git a/refs.c b/refs.c
index 03aded9..b4ca305 100644
--- a/refs.c
+++ b/refs.c
@@ -742,8 +742,6 @@ int check_ref_format(const char *ref)
 				return CHECK_REF_FORMAT_ERROR;
 			if (level < 2)
 				return CHECK_REF_FORMAT_ONELEVEL;
-			if (has_extension(ref, "..lck"))
-				return CHECK_REF_FORMAT_ERROR;
 			return ret;
 		}
 	}
NAK, I like how I removed this block.  It can't happen anymore,
the no ".." in name earlier should have caught the condition.
Very true.  Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help