git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Reference has invalid format: check maybe a bit to harsh?

From
Peter Oberndorfer <kumbayo84@arcor.de>
Date
Oct 31, 2011, 19:14 UTC
Message-ID
<60007404.ge1WXNp2Qn@soybean>
Hi,

i am using the next branch for testing and i noticed the following: about any git command i execute in a certain repo dies with fatal: Reference has invalid format: 'refs/patches/obd_development/blah:_various_improvements_remote_debugging'

This is probably caused by dce4bab6567de7c458b334e029e3dedcab5f2648 add_ref(): verify that the refname is formatted correctly

The invalid refs(about 30, loose and packed) containing a ':' were created by stgit a long time ago(Dec 2006)

Personally i do not care too much, i patched my git to not die at this point but to only display a error. -> The invalid refs are not accessible, but the rest of the repo still works.

But i'm just wondering if dieing when seeing a single invalid ref might be a bit too harsh since no git tools can be used anymore on this repo at all.

Small side note: It seems t1402-check-ref-format.sh contains not test for the invalid ref char ':' yet. (i do not know if it is tested somewhere else...)

Thanks, Greetings Peter

Next: Junio C Hamano
Message 1 of 4 in “Reference has invalid format: check maybe a bit to harsh?”
  1. Peter OberndorferOct 31, 2011
  2. Junio C HamanoOct 31, 2011
  3. Junio C HamanoOct 31, 2011
  4. Michael HaggertyNov 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.