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.