Skip to contentSkip to conversation

Cogito(?): git+ssh pulling broken with tcsh as default shell

DISCUSSION H. Peter Anvin 2 participants 2 messages Jun 15, 2016 – Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

: tazenda 54 ; cg-clone -s git+ssh://terminus.zytor.com/home/hpa/klibc/official/.git/ defaulting to local storage area
mkdir: cannot create directory `.git/branches': File exists
master

          100%   41     0.0KB/s   00:00

GIT_DIR=/home/hpa/klibc/official/.git: Command not found.
error: Couldn't read version from remote end
cg-pull: objects pull failed
cg-clone: pull failed

It looks like it tries to execute a sh/bash script on the remote end, without forcing the remote end to use sh/bash to execute the script.

#1 lore raw

Dear diary, on Thu, Sep 01, 2005 at 11:21:57PM CEST, I got a letter where "H. Peter Anvin" <[email protected]> told me that...

Quoted 6 lines

: tazenda 54 ; cg-clone -s git+ssh://terminus.zytor.com/home/hpa/klibc/official/.git/ defaulting to local storage area
mkdir: cannot create directory `.git/branches': File exists master

          100%   41     0.0KB/s   00:00
Quoted 8 lines

GIT_DIR=/home/hpa/klibc/official/.git: Command not found.
error: Couldn't read version from remote end
cg-pull: objects pull failed
cg-clone: pull failed

It looks like it tries to execute a sh/bash script on the remote end, without forcing the remote end to use sh/bash to execute the script.

This is a git-ssh-pull bug (rsh.c:setup_connection()) and should be pretty easy to fix. Daniel?

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox