summaryrefslogtreecommitdiff
path: root/ssh-pull.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-15 14:56:37 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-15 14:56:37 -0700
commitf71a69ab055c47056d0270b29b8f7455278c2422 (patch)
tree783a7ee17c193bb5baa6f8ebb87e6ce365ae13e6 /ssh-pull.c
parent0de68d28d34f915951324b9f387e6e67172e9951 (diff)
downloadgit-f71a69ab055c47056d0270b29b8f7455278c2422.tar.gz
Be more backward compatible with git-ssh-{push,pull}.
HPA reminded me that these programs knows about the name of the counterpart on the other end and simply symlinking the old name to new name locally would not be enough. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ssh-pull.c')
-rw-r--r--ssh-pull.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-pull.c b/ssh-pull.c
new file mode 100644
index 0000000000..868ce4d41f
--- /dev/null
+++ b/ssh-pull.c
@@ -0,0 +1,4 @@
+#define COUNTERPART_ENV_NAME "GIT_SSH_PUSH"
+#define COUNTERPART_PROGRAM_NAME "git-ssh-push"
+#define MY_PROGRAM_NAME "git-ssh-pull"
+#include "ssh-fetch.c"