Re: [PATCH] Allow branch names that end with ".lock"
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 16 quoted lines
> 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.