From: Dan Aloni <da-x@monatomic.org>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org
Subject: [PATCH] wrap scp in cogito
Date: Tue, 27 Sep 2005 00:15:02 +0300 [thread overview]
Message-ID: <20050926211502.GA27488@localdomain> (raw)
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.
diff --git a/cg-Xlib b/cg-Xlib
--- a/cg-Xlib
+++ b/cg-Xlib
@@ -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.
diff --git a/cg-fetch b/cg-fetch
--- a/cg-fetch
+++ b/cg-fetch
@@ -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()
--
Dan Aloni
da-x@monatomic.org, da-x@colinux.org, da-x@gmx.net
reply other threads:[~2005-09-26 21:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050926211502.GA27488@localdomain \
--to=da-x@monatomic.org \
--cc=git@vger.kernel.org \
--cc=pasky@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox