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

Re: [bug] git-clone over ssh fails when repository has local commits

From
SGseventh guardian <seventhguardian@gmail.com>
Date
Apr 6, 2008, 17:11 UTC
Message-ID
<1caff7430804061011ye82e74v289dd3536b253bcb@mail.gmail.com>
In-Reply-To
<20080406165655.GA26060@coredump.intra.peff.net>
On Sun, Apr 6, 2008 at 5:56 PM, Jeff King <peff@peff.net> wrote:
Show 11 quoted lines
> 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
Previous: Jeff KingNext: Jeff King
Message 5 of 11 in “[bug] git-clone over ssh fails when repository has local commits”
  1. seventh guardianApr 6, 2008
  2. Jeff KingApr 6, 2008
  3. seventh guardianApr 6, 2008
  4. Jeff KingApr 6, 2008
  5. seventh guardianApr 6, 2008
  6. Jeff KingApr 6, 2008
  7. seventh guardianApr 6, 2008
  8. seventh guardianApr 6, 2008
  9. Jakub NarebskiApr 6, 2008
  10. Jeff KingApr 6, 2008
  11. seventh guardianApr 6, 2008

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.