From: "Shawn O. Pearce" <spearce@spearce.org>
To: Clark Williams <clark.williams@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Odd problem in repository
Date: Tue, 24 Apr 2007 13:30:48 -0400 [thread overview]
Message-ID: <20070424173048.GA5942@spearce.org> (raw)
In-Reply-To: <462E3D32.60804@gmail.com>
Clark Williams <clark.williams@gmail.com> wrote:
> One of my collaborators cloned the repository the other day and found
> that it didn't have any branches in it. I cloned a temp copy of it and
> found that the files that normally would be in refs/heads to identify
> the branches had somehow been moved to the directory
> refs/remotes/origin. In my local repository (which was cloned
> immediately after the CVS import), if I list what's in refs/heads, I get
> this:
>
> $ ls -F refs/heads
> master mock mock-0-6-branch mock-0.7 origin
>
> on the whacky cloned copy, I get this:
> $ ls -F refs/heads
> master
>
> and if I look in refs/remotes/origin:
> $ ls -F refs/remotes/origin
> HEAD master mock mock-0-6-branch mock-0.7 origin
This is a change in Git versions. Pre Git-1.5.0 we used to put all
of the branches from the remote system into refs/heads, but now in
1.5.0 and later we put them in refs/remotes/origin.
Nothing screwed up on the central repository, its just the
new layout. refs/heads is reserved for *this* local repository,
while refs/remotes/$name is reserved for the heads of $name remote
repository.
--
Shawn.
next prev parent reply other threads:[~2007-04-24 17:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-24 17:24 Odd problem in repository Clark Williams
2007-04-24 17:30 ` Shawn O. Pearce [this message]
2007-04-24 17:35 ` J. Bruce Fields
2007-04-24 17:44 ` Clark Williams
2007-04-24 17:48 ` Shawn O. Pearce
2007-04-24 17:53 ` Clark Williams
2007-04-24 17:43 ` Jeffrey C. Ollie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070424173048.GA5942@spearce.org \
--to=spearce@spearce.org \
--cc=clark.williams@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox