From: "seventh guardian" <seventhguardian@gmail.com>
To: git@vger.kernel.org
Subject: Re: [bug] git-clone over ssh fails when repository has local commits
Date: Sun, 6 Apr 2008 18:11:12 +0100 [thread overview]
Message-ID: <1caff7430804061011ye82e74v289dd3536b253bcb@mail.gmail.com> (raw)
In-Reply-To: <20080406165655.GA26060@coredump.intra.peff.net>
On Sun, Apr 6, 2008 at 5:56 PM, Jeff King <peff@peff.net> wrote:
> On Sun, Apr 06, 2008 at 05:22:39PM +0100, seventh guardian wrote:
>
> > I can, but it is a local commit. It seems like local commits aren't
> > being "cloned over" to the slaves.. As I said, this only happens for
> > "local masters" where I have local commits. If my master is untouched,
> > then I can successfuly clone the repo.
>
> You are going to have to clarify what you mean by "local commit" and
> "local master". Those aren't terms that are commonly used, so I don't
> understand what you are talking about. Can you describe which git
> commands you used to create this situation?
I figured ;) Let me see if I can explain it better:
remote master: the project git server, located remotely over the internet
local master: my laptop repository, made by cloning the project master repo
slave(s): my local machines, which clone the local master, instead of
the remote master (to save bandwidth)
So on the local master (my laptop) I did:
$ git-clone http://remote.master.address/foo/bar.git
Because I had to do some local changes to the code (what I've called a
"local commit"), I did this on the local master:
$ git-commit -a
Now I want a copy of the repository on another machine, "slave". So I do this:
$ git-clone ssh://local.master.address/path/to/repo
Which gives the annoying error.. If I skipped the "local commit"
stuff, then the cloning would work perfectly.
I hope this is clear now.. Thanks!
Renato
next prev parent reply other threads:[~2008-04-06 17:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-06 13:45 [bug] git-clone over ssh fails when repository has local commits seventh guardian
2008-04-06 16:11 ` Jeff King
2008-04-06 16:22 ` seventh guardian
2008-04-06 16:56 ` Jeff King
2008-04-06 17:11 ` seventh guardian [this message]
2008-04-06 17:51 ` Jeff King
2008-04-06 18:06 ` seventh guardian
2008-04-06 18:11 ` seventh guardian
2008-04-06 20:50 ` Jakub Narebski
2008-04-06 18:17 ` Jeff King
2008-04-06 19:02 ` seventh guardian
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=1caff7430804061011ye82e74v289dd3536b253bcb@mail.gmail.com \
--to=seventhguardian@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;
as well as URLs for NNTP newsgroup(s).