summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2009-06-09 16:01:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-10 06:46:47 (GMT)
commit203462347fce0eab563fe77640648a7e8ae64d3b (patch)
treed5cc723473be92132fd19e120b721f461a14c9ed /remote.h
parentf4f78e668dd40f2d4a5bc119cccb3c34c2675c38 (diff)
downloadgit-203462347fce0eab563fe77640648a7e8ae64d3b.zip
git-203462347fce0eab563fe77640648a7e8ae64d3b.tar.gz
git-203462347fce0eab563fe77640648a7e8ae64d3b.tar.bz2
Allow push and fetch urls to be different
This introduces a config setting remote.$remotename.pushurl which is used for pushes only. If absent remote.$remotename.url is used for pushes and fetches as before. This is useful, for example, in order to do passwordless fetches (remote update) over the git transport but pushes over ssh. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 99706a8..326bffe 100644
--- a/remote.h
+++ b/remote.h
@@ -15,6 +15,10 @@ struct remote {
int url_nr;
int url_alloc;
+ const char **pushurl;
+ int pushurl_nr;
+ int pushurl_alloc;
+
const char **push_refspec;
struct refspec *push;
int push_refspec_nr;