git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "seventh guardian" <seventhguardian@gmail.com>
To: git@vger.kernel.org
Subject: [bug] git-clone over ssh fails when repository has local commits
Date: Sun, 6 Apr 2008 14:45:22 +0100	[thread overview]
Message-ID: <1caff7430804060645s764f24f8y3d07ee8647ec8f25@mail.gmail.com> (raw)

Hello,

First of all I kindly ask you to put my e-mail in CC as I'm not
subscribed to the list. Secondly, I did try to find similar issues on
the archives, but failed to do so. I apologize if this is not a bug.

I keep some local git repositories on my laptop, which are also used
by other machines on my home network. In order to avoid unnecessary
burden on the master servers, I've tried keeping a "local master" on
the laptop and clone the repo's over ssh on the other machines.

I have some local commits on some of the "local master" repo's, and
that's where the problems start: while cloning over ssh works fine for
the unchanged repo's, those which have local commits are impossible to
clone. The error on the "slave" machines is this:

 $ git-clone ssh://<host>/<path>
Initialized empty Git repository in <path>/.git/
Password:
remote: Counting objects: 132468, done.
remote: Compressing objects: 100% (25543/25543), done.
remote: Total 132468 (delta 107355), reused 130574 (delta 105466)
Receiving objects: 100% (132468/132468), 42.12 MiB | 4161 KiB/s, done.
Resolving deltas: 100% (107355/107355), done.
error: Trying to write ref REMOTE_HEAD with nonexistant object
f7a51afd56964cb0f10178353315d2680832ea54
fatal: Cannot update the ref 'REMOTE_HEAD'.
Warning: Remote HEAD refers to nonexistent ref, unable to checkout.

where I've "obfuscated" the hostname and the repository path. I'm
using the latest version, 1.5.4.5.

Thanks,
  Renato Caldas

             reply	other threads:[~2008-04-06 13:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-06 13:45 seventh guardian [this message]
2008-04-06 16:11 ` [bug] git-clone over ssh fails when repository has local commits Jeff King
2008-04-06 16:22   ` seventh guardian
2008-04-06 16:56     ` Jeff King
2008-04-06 17:11       ` seventh guardian
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=1caff7430804060645s764f24f8y3d07ee8647ec8f25@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).