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

Re: "warning: Updating the currently checked out branch may cause confusion" on bare repositories

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 19, 2010, 06:29 UTC
Message-ID
<20100119062904.GB23212@spearce.org>
In-Reply-To
<xuu2ska3doix.fsf@nowhere.com>
Adam Megacz <adam@megacz.com> wrote:
Show 9 quoted lines
> 
> It seems that the message "warning: Updating the currently checked out
> branch may cause confusion" is unnecessary when pushing to a bare
> "myproject.git" repository (instead of a "myproject/.git" repository).
> 
> Is this the case?
> 
> If so, perhaps the warning should be omitted when the target is a bare
> repository.

That should already be the case. Did you create the bare repository by taking a copy of a non-bare's .git directory? Check your bare repository's config file and see if core.bare = false, if so set it to true to signal it really is bare.

-- 
Shawn.
Previous: Adam MegaczNext: Adam Megacz
Message 2 of 5 in “"warning: Updating the currently checked out branch may cause confusion" on bare repositories”
  1. Adam MegaczJan 18, 2010
  2. Shawn O. PearceJan 19, 2010
  3. Adam MegaczJan 19, 2010
  4. Shawn O. PearceJan 19, 2010
  5. Jeff KingJan 19, 2010

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.