git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to clone an ssh repository (with ugly installation-specific workaround)
@ 2008-02-12  2:22 Elijah Newren
  2008-02-12  7:04 ` David Symonds
  2008-02-12  8:16 ` Jakub Narebski
  0 siblings, 2 replies; 11+ messages in thread
From: Elijah Newren @ 2008-02-12  2:22 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Hi,

I'm pretty sure this worked before, but with git-1.5.4, when trying to
clone a repository via ssh from a machine that does not have git
installed in a standard system path, I get the following:

$ git clone -u /home/enewren/software/install/linux/git/bin/git-upload-pack
ssh://enewren@remote/var/scratch/enewren/votd
Initialized empty Git repository in /home/newren/devel/votd/.git/
remote: fatal: exec pack-objects failed.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
fetch-pack from 'ssh://enewren@remote/var/scratch/enewren/votd' failed.

I tried doing a local clone of the same repository (worked fine), a
'git fsck -full' on the relevant repository (reported no errors), and
a few other things.  After a bit of digging, I found a really ugly
hack that works around my problem.  After recompiling git on the
remote machine with the attached patch, the clone operation succeeded.


Thanks,
Elijah

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ugly-hack.patch --]
[-- Type: text/x-patch; name=ugly-hack.patch, Size: 375 bytes --]

--- git-1.5.4/exec_cmd.c~	2008-02-01 21:09:01.000000000 -0700
+++ git-1.5.4/exec_cmd.c	2008-02-11 17:35:11.092796000 -0700
@@ -69,7 +69,7 @@
 	const char *tmp;
 
 	strbuf_init(&cmd, 0);
-	strbuf_addf(&cmd, "git-%s", argv[0]);
+	strbuf_addf(&cmd, "/home/enewren/software/install/linux/git/bin/git-%s", argv[0]);
 
 	/*
 	 * argv[0] must be the git command, but the argv array

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

end of thread, other threads:[~2008-02-13 14:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12  2:22 Unable to clone an ssh repository (with ugly installation-specific workaround) Elijah Newren
2008-02-12  7:04 ` David Symonds
2008-02-12  8:16 ` Jakub Narebski
2008-02-12  8:37   ` Johannes Sixt
2008-02-12 10:30     ` Johannes Schindelin
2008-02-12 11:28       ` [PATCH] upload-pack: Initialize the exec-path Johannes Sixt
2008-02-12 11:49         ` Johannes Schindelin
2008-02-12 12:45           ` Johannes Schindelin
2008-02-13 13:00             ` Elijah Newren
2008-02-13 12:57       ` Unable to clone an ssh repository (with ugly installation-specific workaround) Elijah Newren
2008-02-13 14:17         ` Stephen Sinclair

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