Re: [PATCH v2 6/7] check_ref_format(): tighten refname rules
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Mar 23, 2009, 13:59 UTC
- Message-ID
- <20090323135901.GB9732@spearce.org>
- In-Reply-To
- <345e795e1891c628ad8356b730fade9f7a81e2f6.1237791716.git.gitster@pobox.com>
Junio C Hamano <gitster@pobox.com> wrote:
> This changes the rules for refnames to forbid:
>
> (1) a refname that contains "@{" in it.
> (2) a refname that ends with a dot.How about also "that end in .lock" ?
$ git branch foo.lock $ git branch foo fatal: Unable to create '.git/refs/heads/foo.lock': File exists.
If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to contin
Oh, apparently there is also something wrong with the error message...
$ git version git version 1.6.2.1.433.g0cbc
-- Shawn.