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

2.2.0-rc behavior changes (1/2)

From
Bryan Turner <bturner@atlassian.com>
Date
Nov 10, 2014, 08:47 UTC
Message-ID
<CAGyf7-GxJ6XHjKqwktKqpo_mFuC_D3gzeOGNTdt4sweAnFqNRg@mail.gmail.com>

I've been running a test suite we use to verify Git behaviors across versions, and the 2.2.0 RCs (0 and 1 both) have a couple of small behavioral differences. I'm sending them in separate e-mails just to make the contents easier to grok.

Important: It's entirely possible neither of these is a _bug_; they
may both be intentional changes in behavior.

First change: git update-ref -d /refs/heads/nonexistent <some-valid-sha1> now produces an error about ref locking that it didn't produce before

Git 2.1.x and prior produced this output: error: unable to resolve reference refs/heads/nonexistent: No such file or directory

Now, in the 2.2.0 RCs, it says: error: unable to resolve reference refs/heads/nonexistent: No such file or directory error: Cannot lock the ref 'refs/heads/nonexistent'.

This one feels more like a bug, but again may not be. I say it feels like a bug because of the order of the messages: If git has decided the ref doesn't exist, why is it still trying to lock it?

This change bisects to:
bturner@felurian:~/Development/git/git$ git bisect bad
7521cc4611a783f4a8174bd0fcec5f4a47357ac1 is the first bad commit
commit 7521cc4611a783f4a8174bd0fcec5f4a47357ac1
Author: Ronnie Sahlberg <sahlberg@google.com>
Date:   Wed Apr 30 09:22:45 2014 -0700
    refs.c: make delete_ref use a transaction

Best regards, Bryan Turner

Next: Jeff King
Message 1 of 3 in “2.2.0-rc behavior changes (1/2)”
  1. Bryan TurnerNov 10, 2014
  2. Jeff KingNov 10, 2014
  3. Bryan TurnerNov 10, 2014

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.