From: Bill Lear <rael@zopyra.com>
To: git@vger.kernel.org
Subject: Re: Fetching from peer's public repo
Date: Thu, 1 Feb 2007 10:10:36 -0600	[thread overview]
Message-ID: <17858.4348.498027.613657@lisa.zopyra.com> (raw)
In-Reply-To: <17858.1586.41833.597819@lisa.zopyra.com>
On Thursday, February 1, 2007 at 09:24:34 (-0600) Bill Lear writes:
>My fetch from a peer's public repo seems to be failing:
>
>% git --bare fetch git://source/public/project topic:topic
>remote: Generating pack...
>remote: Done counting 48 objects.
>remote: Result has 34 objects.
>remote: Deltifying 34 objects.
>remote:  100% (34/34) done
>remote: Total 34, written 34 (delta 22), reused 24 (delta 12)
>Unpacking 34 objects
> 100% (34/34) done
>* refs/heads/topic: not updating to non-fast forward branch 'topic' of git://source/public/project
>  old...new: 1c332f5...f3b18ff
>
>I assume that is because his public repo does not contain changes I
>have pushed into my public repo.  So, I asked him to pull from
>my public repo into his.  He did, and said that git blathered that
>there were 12 changed files, etc.
Ok, I think I have discovered the cause...  Sorry for wasting time.
My pal did a git pull from my public repo's topic branch into his
master branch by mistake.  My fetch of his topic branch of course
failed, as he did not update it.
You know, some training wheels for git might be nice...
Such as a git config variable:
[newbies]
	please.god.save.me.if.I.try.to.merge = true
Which would cause git-pull, git-fetch, git-merge (whatever) to prompt
you:
  Hey Nimrod, you're about to MERGE something from one branch to
  another --- are you sure you really want to do this? (y/n)
I myself have shot several repos in the head by doing this by mistake.
Once this is done, and you pull it into your private repos, the infection
spreads, and you have to go back to each and repair them...
We'll get this right soon...
Bill
next prev parent reply	other threads:[~2007-02-01 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 15:24 Fetching from peer's public repo Bill Lear
2007-02-01 16:10 ` Bill Lear [this message]
2007-02-02 10:25 ` Jakub Narebski
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=17858.4348.498027.613657@lisa.zopyra.com \
    --to=rael@zopyra.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;
as well as URLs for NNTP newsgroup(s).