threads / discuss / 54061

Problems with FTP PUSH

Subject: Problems with FTP PUSH

## tl;dr

2 messages between Aug 18, 2020 and Aug 18, 2020.

replies: 1people: 2as markdown or json

Ian S. Worthington· Aug 18, 2020, 11:46 UTC · lore
Hi guys -- 

I have a server without https and so I'm trying to establish if I can host a repository there using ftp. The manuals suggest that I can, but when I try:

>git push -v ftp://user:pw@host//u/path/repos/test/.git/ 

Pushing to ftp://user:pw@host//u/path/repos/test/.git/ fatal: unable to access 'ftp://host//u/path/repos/test/.git/': RETR response: 550

Looking at it with wireshark, I can see the SIZE and the RETR of .../test/.git/info/refs reports the file does not exist, which is correct and, as far as I can see, normal(?), but that the RETR failure terminates the push:

<image deleted> 
Have I made an error in the setup of my repos, or some other foolish mistake?
Best wishes, 

i ...

Ian S Worthington 
Junio C Hamano· Aug 18, 2020, 20:08 UTC · re: Ian S. Worthington · lore

Re: Problems with FTP PUSH

"Ian S. Worthington" <ianworthington@usa.net> writes:
> I have a server without https and so I'm trying to establish if I can host a
> repository there using ftp.  The manuals suggest that I can, but when I try: 
Which manuals?

IIUC, a dumb HTTP(S) server that accepts only GET can still serve "git fetch", and an FTP(s) server would be able to do the same using similar codepath, but I do not think these can accept "git push". A dumb HTTP(S) may be able to accept "git push" if it does WebDAV, but I do not think there is corresponding FTP support at all.

← back to recent threads