git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git push failure in the case of SSH to localhost
@ 2009-02-11 16:24 Ciprian Dorin, Craciun
  2009-02-11 18:05 ` Jeff King
  0 siblings, 1 reply; 17+ messages in thread
From: Ciprian Dorin, Craciun @ 2009-02-11 16:24 UTC (permalink / raw)
  To: git

    Hello all!

    I've encountered the following error situations: git fails to push
a branch over ssh to localhost, even with file: protocol it has the
same behaviour... Please see the transcript... (Git version is
1.6.1.1) I don't think I'm doing something wrong, because this works
just fine with a real remote host...

    Thanks,
    Ciprian Craciun.

    P.S.: I'm using a slightly modified version of Git, but this patch
affects only the PATH-like search mechanism for git commands.

----

    0  git version
git version 1.6.1.1.dirty

    1  cd /tmp
    2  mkdir r1
    3  cd r1
    4  git init
    5  cd ..
    6  mkdir r2
    7  cd r2
    8  git init --bare
    9  cd ..
   10  cd r1
   11  echo a>a
   12  git add .
   13  git commit -m '--'

   14  git push ssh://localhost/tmp/r2 master
Counting objects: 3, done.
Writing objects: 100% (3/3), 197 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
error: unpack should have generated
ea8c5601f49a4bdeea03db3adb909d590ea730d3, but I can't find it!
To ssh://localhost/tmp/r2
 ! [remote rejected] master -> master (bad pack)
error: failed to push some refs to 'ssh://localhost/tmp/r2'

   15  git push file:///tmp/r2 master
Counting objects: 3, done.
Writing objects: 100% (3/3), 197 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
error: unpack should have generated
ea8c5601f49a4bdeea03db3adb909d590ea730d3, but I can't find it!
To file:///tmp/r2
 ! [remote rejected] master -> master (bad pack)
error: failed to push some refs to 'file:///tmp/r2'

    16 git push ssh://hephaistos.tartarus./tmp/r2 master
Counting objects: 3, done.
Writing objects: 100% (3/3), 197 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To ssh://dom1.hephaistos.tartarus./tmp/r2
 * [new branch]      master -> master

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-02-11 21:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 16:24 Git push failure in the case of SSH to localhost Ciprian Dorin, Craciun
2009-02-11 18:05 ` Jeff King
2009-02-11 18:42   ` Ciprian Dorin, Craciun
2009-02-11 18:44     ` Jeff King
2009-02-11 19:03       ` Ciprian Dorin, Craciun
2009-02-11 19:14         ` Shawn O. Pearce
2009-02-11 19:20           ` Ciprian Dorin, Craciun
2009-02-11 19:22             ` Jeff King
2009-02-11 19:32               ` Ciprian Dorin, Craciun
2009-02-11 19:42                 ` Jeff King
2009-02-11 20:03                   ` Ciprian Dorin, Craciun
2009-02-11 20:23                     ` Junio C Hamano
2009-02-11 20:49                       ` Ciprian Dorin, Craciun
2009-02-11 21:03                         ` Johannes Schindelin
2009-02-11 19:27             ` Junio C Hamano
2009-02-11 19:34               ` Ciprian Dorin, Craciun
2009-02-11 19:40                 ` Junio C Hamano

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).