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

Re: git-checkout changes the index but not the checked out files?

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Apr 23, 2007, 00:45 UTC
Message-ID
<46a038f90704221745h1bf2955cyfb40f6e8c08a336d@mail.gmail.com>
In-Reply-To
<7vabx0kk4z.fsf@assigned-by-dhcp.cox.net>
On 4/23/07, Junio C Hamano <junkio@cox.net> wrote:
> > but the ambiguous "git-rev-parse --verify 'mdl18-local^0'" returns the
> > SHA1 for a head called 'mdl18-topnz' that I am not asking for. Why?
>
> Maybe you have a branch that is exactly the same name as a tag?

Nope - none of the tags look _anything_ like mdl18-local. See http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=tags

I think mdl18-topnz was the first local branch I created in this checkout.

Hmmmm. There was a .git/mdl18-local file that had the bogus SHA1 in it: a26c09be05a08e5f911ef84b5f8010ba155ea77d . I don't know how it got there and how it had the wrong sha1 in it. Removing it has fixed it.

The _really_ strange bit is that it was attempting to merge 2 heads of the same name. It'd probably be something to block...

cheers,
martin
Previous: Junio C HamanoNext: Linus Torvalds
Message 5 of 8 in “git-checkout changes the index but not the checked out files?”
  1. Martin LanghoffApr 22, 2007
  2. Junio C HamanoApr 22, 2007
  3. Martin LanghoffApr 23, 2007
  4. Junio C HamanoApr 23, 2007
  5. Martin LanghoffApr 23, 2007
  6. Linus TorvaldsApr 23, 2007
  7. Martin LanghoffApr 23, 2007
  8. Uwe Kleine-KönigApr 23, 2007

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.