summaryrefslogtreecommitdiff
path: root/src/transports/git.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transports/git.c')
-rw-r--r--src/transports/git.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/transports/git.c b/src/transports/git.c
index b757495c5..5d5f0c68a 100644
--- a/src/transports/git.c
+++ b/src/transports/git.c
@@ -106,7 +106,8 @@ static int do_connect(transport_git *t, const char *url)
if (gitno_connect((git_transport *)t, host, port) < 0)
goto on_error;
- if (send_request((git_transport *)t, NULL, url) < 0)
+ if (send_request((git_transport *)t,
+ t->parent.direction ? "git-receive-pack" : NULL, url) < 0)
goto on_error;
git__free(host);
@@ -129,11 +130,6 @@ static int git_connect(git_transport *transport, int direction)
{
transport_git *t = (transport_git *) transport;
- if (direction == GIT_DIR_PUSH) {
- giterr_set(GITERR_NET, "Pushing over git:// is not supported");
- return -1;
- }
-
t->parent.direction = direction;
/* Connect and ask for the refs */