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

Re: [PATCH] sha1_name: pass object name length to diagnose_invalid_sha1_path()

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Mar 17, 2013, 11:38 UTC
Message-ID
<5145AB44.8050704@lsrfire.ath.cx>
In-Reply-To
<7vzjy2qz6g.fsf@alter.siamese.dyndns.org>
Am 17.03.2013 08:10, schrieb Junio C Hamano:
Show 8 quoted lines
>> @@ -1158,16 +1159,16 @@ static void diagnose_invalid_sha1_path(const char *prefix,
>>   		if (!get_tree_entry(tree_sha1, fullname,
>>   				    sha1, &mode)) {
>>   			die("Path '%s' exists, but not '%s'.\n"
>> -			    "Did you mean '%s:%s' aka '%s:./%s'?",
>> +			    "Did you mean '%.*s:%s' aka '.*%.*s:./%s'?",
>
> Will squash an obvious fix in and apply.

Did I try to make a point there? Certainly not. It seems I need to go back to http://vim-adventures.com/.

Thank you for spotting this! René

Previous: Junio C Hamano
Message 3 of 3 in “sha1_name: pass object name length to diagnose_invalid_sha1_path()”
  1. sha1_name: pass object name length to diagnose_invalid_sha1_path()René Scharfe, Mar 16, 2013
  2. Junio C HamanoMar 17, 2013
  3. René ScharfeMar 17, 2013

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.