{"thread":{"id":"1953","subject":"[PATCH] wrap scp in cogito","startedAt":"2005-09-26T21:15:02Z","lastAt":"2005-09-26T21:15:02Z","messageCount":1,"participants":["Dan Aloni"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"9327","messageId":"20050926211502.GA27488@localdomain","threadId":"1953","inReplyTo":null,"subject":"[PATCH] wrap scp in cogito","fromName":"Dan Aloni","fromEmail":"da-x@monatomic.org","sentAt":"2005-09-26T21:15:02Z","receivedAt":"2005-09-26T21:15:02Z","isPatch":true,"sender":{"key":"da-x@monatomic.org","avatar":null},"body":"Hello,\n\nSince git allows to wrap ssh by the means of the GIT_SSH environment \nvariable I think it would be appropriate to complete the picture and wrap \nthe usage of scp in cogito by using the same measures. The patch follows.\n\n\ndiff --git a/cg-Xlib b/cg-Xlib\n--- a/cg-Xlib\n+++ b/cg-Xlib\n@@ -471,6 +471,12 @@ if [ \"$_git_requires_root\" ] && [ \"$_git\n \texit 1\n fi\n \n+if [ \"$GIT_SCP\" != \"\" ] ; then\n+    _cogito_scp=$GIT_SCP\n+else\n+    _cogito_scp=scp\t\n+fi\n+\n \n # Backward compatibility hacks:\n # Fortunately none as of now.\ndiff --git a/cg-fetch b/cg-fetch\n--- a/cg-fetch\n+++ b/cg-fetch\n@@ -206,7 +206,7 @@ get_ssh()\n \t\techo \"Warning: Cannot protect against overwriting $dest when fetching over ssh\" 2>/dev/null\n \n \t[ \"$directory\" ] && dest=$(dirname \"$dest\")\n-\tscp $scp_flags \"$src\" \"$dest\"\n+\t${_cogito_scp} $scp_flags \"$src\" \"$dest\"\n }\n \n fetch_ssh()\n\n\n-- \nDan Aloni\nda-x@monatomic.org, da-x@colinux.org, da-x@gmx.net\n"}]}