From 3d0a4a0a673659b63613ba6ad9f1240ac9e3aacd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 2 Jul 2015 12:29:22 -0400 Subject: [PATCH] followup --- ..._b726337841cca318bf0a54f0e6240d86._comment | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 doc/bugs/git-annex_sync_under_windows_fails_by_using_itself_as_the_ssh_command/comment_1_b726337841cca318bf0a54f0e6240d86._comment diff --git a/doc/bugs/git-annex_sync_under_windows_fails_by_using_itself_as_the_ssh_command/comment_1_b726337841cca318bf0a54f0e6240d86._comment b/doc/bugs/git-annex_sync_under_windows_fails_by_using_itself_as_the_ssh_command/comment_1_b726337841cca318bf0a54f0e6240d86._comment new file mode 100644 index 0000000000..bfa2a0a185 --- /dev/null +++ b/doc/bugs/git-annex_sync_under_windows_fails_by_using_itself_as_the_ssh_command/comment_1_b726337841cca318bf0a54f0e6240d86._comment @@ -0,0 +1,36 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-07-02T15:50:12Z" + content=""" +Based on the usage output, it seems to be running a recent enough version +of git-annex, which should notice if it's being run as a proxy for ssh. + +Some kind of problem with the environment variables used to communicate +with the git-annex proxy seems like the most likely problem. +But, I am not able to reproduce this problem on Windows (XP) here. +The `GIT_SSH` env var is clearly being set, or git wouldn't try to run +git-annex as ssh. The `GIT_ANNEX_SSHOPTION` env var is set in the same way +as `GIT_SSH`. Maybe git-annex is failing to see it for some reason? + +Since you're comfortable with building git-annex from source, maybe you can +try some simple patches to debug this? + +Here's the first patch I'd suggest. it will make git-annex print out +what value, if any, it's seeing for `GIT_ANNEX_SSHOPTION`. Note that you'll +need to install the patched git-annex into the path. + + diff --git a/CmdLine/GitAnnex.hs b/CmdLine/GitAnnex.hs + index 326dd3b..b612dbb 100644 + --- a/CmdLine/GitAnnex.hs + +++ b/CmdLine/GitAnnex.hs + @@ -225,6 +225,8 @@ run args = do + #ifdef WITH_EKG + _ <- forkServer "localhost" 4242 + #endif + + v <- getEnv sshOptionsEnv + + print (sshOptionsEnv, v) + go envmodes + where + go [] = dispatch True args cmds gitAnnexOptions [] header Git.CurrentRepo.get +"""]]