wrap scp in cogito
PATCH 1/1 wrap scp in cogito
Hello,
Since git allows to wrap ssh by the means of the GIT_SSH environment variable I think it would be appropriate to complete the picture and wrap the usage of scp in cogito by using the same measures. The patch follows.
cg-Xlib +6 -0
@@ -471,6 +471,12 @@ if [ "$_git_requires_root" ] && [ "$_git exit 1 fi +if [ "$GIT_SCP" != "" ] ; then + _cogito_scp=$GIT_SCP +else + _cogito_scp=scp +fi + # Backward compatibility hacks: # Fortunately none as of now.
cg-fetch +1 -1
@@ -206,7 +206,7 @@ get_ssh() echo "Warning: Cannot protect against overwriting $dest when fetching over ssh" 2>/dev/null [ "$directory" ] && dest=$(dirname "$dest") - scp $scp_flags "$src" "$dest" + ${_cogito_scp} $scp_flags "$src" "$dest" } fetch_ssh()
Signature · 2 lines
Dan Aloni [email protected], [email protected], [email protected]