From 85e9e67748906e0c2f5d4c4d5734edb50ecdcc80 Mon Sep 17 00:00:00 2001 From: jrollins Date: Mon, 1 Feb 2021 19:04:42 +0000 Subject: [PATCH] Added a comment --- ..._1f2bbe9a7b7de1b46b1829fdf1580c26._comment | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 doc/bugs/problems_with_SSH_and_relative_paths/comment_6_1f2bbe9a7b7de1b46b1829fdf1580c26._comment diff --git a/doc/bugs/problems_with_SSH_and_relative_paths/comment_6_1f2bbe9a7b7de1b46b1829fdf1580c26._comment b/doc/bugs/problems_with_SSH_and_relative_paths/comment_6_1f2bbe9a7b7de1b46b1829fdf1580c26._comment new file mode 100644 index 0000000000..c383d87093 --- /dev/null +++ b/doc/bugs/problems_with_SSH_and_relative_paths/comment_6_1f2bbe9a7b7de1b46b1829fdf1580c26._comment @@ -0,0 +1,46 @@ +[[!comment format=mdwn + username="jrollins" + avatar="http://cdn.libravatar.org/avatar/129f3c58226661d01c5bfc18f0048d81" + subject="comment 6" + date="2021-02-01T19:04:39Z" + content=""" +Using the --debug option (thanks to suggestion fro @lukey) I was able to get a little deeper: + +``` +0$ git clone cal@ldas-pcdev1.ligo-wa.caltech.edu:archive/git +Cloning into 'git'... +warning: You appear to have cloned an empty repository. +0$ cd git +0$ git annex init --verbose --debug servo +[...] + +[2021-02-01 10:50:13.141613956] process [1006769] read: ssh [\"remote.example.com\",\"-S\",\".git/annex/ssh/95ea79d833b87277ea620851140b81ec\",\"-o\",\"ControlMaster=auto\",\"-o\",\"ControlPersist=yes\",\"-n\",\"-T\",\"git-annex-shell 'configlist' '/~/archive/git' '--debug'\"] +[2021-02-01 10:50:17.66427318] process [1006769] done ExitFailure 1' + + Unable to parse git config from origin +[...] +``` + +Note the path `/~/archive/git`. That's obviously not going to work, so there really is an issue with relative paths and ssh. + +*However*, that's not the full problem. Something else is going on: + +``` +0$ git clone cal@ldas-pcdev1.ligo-wa.caltech.edu:/home/cal/archive/git +Cloning into 'git'... +warning: You appear to have cloned an empty repository. +0$ cd git +0$ git annex init --verbose --debug servo +[...] +[2021-02-01 10:53:36.256163655] process [1007229] read: ssh [\"remote.example.com\",\"-S\",\".git/annex/ssh/95ea79d833b87277ea620851140b81ec\",\"-o\",\"ControlMaster=auto\",\"-o\",\"ControlPersist=yes\",\"-n\",\"-T\",\"git-annex-shell 'configlist' '/home/cal/archive/git' '--debug'\"] +[2021-02-01 10:53:40.632608448] process [1007229] done ExitFailure 1 + + Unable to parse git config from origin +[...] +0$ ssh remote.example.com 'configlist' /home/cal/archive/git +git-annex-shell: Not a git-annex or gcrypt repository. +1$ +``` + +This really makes it seem like there's some more configuration needed on the remote side. The instructions don't mention anything other than just initializing the bare git repo. Are you sure there's no other action that needs to be taken? +"""]]