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

Re: Corruption of branch?

From
TNThomas Nyberg <tomnyberg@gmail.com>
Date
Dec 14, 2015, 20:44 UTC
Message-ID
<566F2A3B.3050501@gmail.com>
In-Reply-To
<1450125640.16044.4.camel@kaarsemaker.net>

wow right on the button. yeah i have the "frus" folder in the root of my repository. i never knew that git checkout also searches the root of the repository like that. it appears i'm a fool who doesn't read documentation...

i learned something knew and can move this from the "bizarre index corruption" category to the "user error" category. thanks so much everyone!

On 12/14/2015 03:40 PM, Dennis Kaarsemaker wrote:
Show 23 quoted lines
> On ma, 2015-12-14 at 15:33 -0500, Thomas Nyberg wrote:
>> What exactly are you looking for? Here's the results of the following
>> command:
>>
>> $ git for-each-ref | grep frus
>> 1750cba5a94b3fe6041aaf49de430a558a3b9bc8 commit
>> refs/heads/frus_body_cleaning
>> 3a1dbe48299f6eda1cc4b69cab35284c0f0355eb commit	refs/remotes/o
>> rigin/frus
>> 1750cba5a94b3fe6041aaf49de430a558a3b9bc8 commit
>> refs/remotes/origin/frus_body_cleaning
>>
>> Sorry if this isn't what you're looking for. I'm actually not very
>> familiar with these different internal git commands...
>
> This is what I was looking for. Unfortunately it doesn't show any of
> the smoking guns I had hoped for.
>
> That leaves only one option: you also have a file or directory named
> 'frus' in the root of your repository. In this case 'git checkout frus'
> does the same as 'git checkout -- frus' instead of DWIM'ing 'git
> checkout frus' to 'git checkout -b frus origin/frus'
>
Previous: Junio C Hamano
Message 10 of 10 in “Corruption of branch?”
  1. Thomas NybergDec 14, 2015
  2. Stefan BellerDec 14, 2015
  3. Thomas NybergDec 14, 2015
  4. David TurnerDec 14, 2015
  5. Thomas NybergDec 14, 2015
  6. Dennis KaarsemakerDec 14, 2015
  7. Thomas NybergDec 14, 2015
  8. Dennis KaarsemakerDec 14, 2015
  9. Junio C HamanoDec 14, 2015
  10. Thomas NybergDec 14, 2015

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.