threads / discuss / 31737

Fw: How do I git-push to an FTP server?

Subject: Fw: How do I git-push to an FTP server?

## tl;dr

14 messages between Oct 5, 2012 and Oct 8, 2012.

replies: 13people: 6as markdown or json

Konstantin Khomoutov· Oct 5, 2012, 13:38 UTC · lore

On the git-users mailing list we're trying someone to help with running `git push` over FTP. That person is runnig Git 1.7.9.5 on Ubuntu 12.04.

Below is the trace captured while trying to perform such a faulty push. The oddity (in my eyes) is that after uploading the files, Git executes `git http-push` which manual page does not mention FTP at all.

So I'd like to ask experts on Git transports for any advice in this situation.

Begin forwarded message:
Date: Fri, 5 Oct 2012 05:07:24 -0700 (PDT)
From: August Karlstrom <fusio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: git...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Cc: August Karlstrom <fusio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [git-users] How do I git-push to an FTP server?

Den fredagen den 5:e oktober 2012 kl. 11:38:43 UTC+2 skrev Konstantin Khomoutov:

Show 20 quoted lines
>
> On Fri, 5 Oct 2012 01:24:21 -0700 (PDT) 
> August Karlstrom <fusio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> wrote: 
>
> > I get the following error when I run `git push' in a repository 
> > called test: 
> > 
> > error: Cannot access URL ftp://my-ftp-server/git/test.git/, return 
> > code 3 fatal: git-http-push failed 
> > 
> > This is after having successfully cloned the repository from the 
> > address above. 
> Try to run your command while having set GIT_TRACE=1 and 
> GIT_CURL_VERBOSE=1, like 
>
> $ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push 
>
> and post the results here (if you will fail to infer the cause from
> its output by yourself). 
>

Thanks for the input, Konstantin. Below is the output (with identifying info removed). I can't see what caused "Uploading to a URL without a file name" at the end.

$ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push
trace: built-in: git 'push'
trace: run_command: 'git-remote-ftp' 'origin' 
'ftp://my-ftp-server/git/test.git'
* About to connect() to my-ftp-server port 21 (#0)
*   Trying my-ftp-ip... * Connected to my-ftp-server (my-ftp-ip) port
21 (#0)
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 
< 220-You are user number 6 of 400 allowed. 
< 220-Local time is now 11:23. Server port: 21. 
< 220-This is a private system - No anonymous login 
< 220 You will be disconnected after 15 minutes of inactivity. 
> USER my-username 
< 331 User my-username OK. Password required 
> PASS my-password 

< 230-User my-username has group access to: my-group < 230 OK. Current restricted directory is /

> PWD 
< 257 "/" is your current location 
* Entry path is '/'
> CWD git 
< 250 OK. Current directory is /git 
> CWD test.git 
< 250 OK. Current directory is /git/test.git 
> CWD info 
< 250 OK. Current directory is /git/test.git/info 
> EPSV 
* Connect data stream passively
< 500 Unknown command 
* disabling EPSV usage
> PASV 
< 227 Entering Passive Mode ([not shown]) 
*   Trying my-ftp-ip... * Connecting to my-ftp-ip (my-ftp-ip) port 63983
> TYPE I 
< 200 TYPE is now 8-bit binary 
> SIZE refs 
< 213 59 
> RETR refs 
< 150 Accepted data connection 
* Maxdownload = -1
* Getting file with size: 59
* Remembering we are in dir "git/test.git/info/"
< 226-File successfully transferred 
< 226 0.000 seconds (measured here), 1.34 Mbytes per second 
* Connection #0 to host my-ftp-server left intact
* Re-using existing connection! (#0) with host my-ftp-server
* Connected to my-ftp-server (my-ftp-ip) port 21 (#0)
> CWD / 
< 250 OK. Current directory is / 
> CWD git 
< 250 OK. Current directory is /git 
> CWD test.git 
< 250 OK. Current directory is /git/test.git 
> PASV 
* Connect data stream passively
< 227 Entering Passive Mode ([not shown]) 
*   Trying my-ftp-ip... * Connecting to my-ftp-ip (my-ftp-ip) port 63462
> SIZE HEAD 
< 213 23 
> RETR HEAD 
< 150 Accepted data connection 
* Maxdownload = -1
* Getting file with size: 23
* Remembering we are in dir "git/test.git/"
< 226-File successfully transferred 
< 226 0.000 seconds (measured here), 0.63 Mbytes per second 
* Connection #0 to host my-ftp-server left intact
trace: run_command: 'http-push' '--helper-status' 
'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master' trace: exec: 'git' 'http-push'
'--helper-status' 'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master' trace: exec: 'git-http-push'
'--helper-status' 'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master' trace: run_command:
'git-http-push' '--helper-status' 'ftp://my-ftp-server/git/test.git/'
'refs/heads/master:refs/heads/master'
* About to connect() to my-ftp-server port 21 (#0)
*   Trying my-ftp-ip... * Connected to my-ftp-server (my-ftp-ip) port
21 (#0)
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 
< 220-You are user number 7 of 400 allowed. 
< 220-Local time is now 11:23. Server port: 21. 
< 220-This is a private system - No anonymous login 
< 220 You will be disconnected after 15 minutes of inactivity. 
> USER my-username 
< 331 User my-username OK. Password required 
> PASS my-password 

< 230-User my-username has group access to: my-group < 230 OK. Current restricted directory is /

> PWD 
< 257 "/" is your current location 
* Entry path is '/'
* Uploading to a URL without a file name!
* Closing connection #0
error: Cannot access URL ftp://my-ftp-server/git/test.git/, return code
3 fatal: git-http-push failed
-- 
You received this message because you are subscribed to the Google
Groups "Git for human beings" group. To view this discussion on the web
visit https://groups.google.com/d/msg/git-users/-/n_i8DslaCr8J. To post
to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe
from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Philippe Vaucher· Oct 5, 2012, 13:46 UTC · re: Konstantin Khomoutov · lore

Re: Fw: [git-users] How do I git-push to an FTP server?

> On the git-users mailing list we're trying someone to help with
> running `git push` over FTP.  That person is runnig Git 1.7.9.5
> on Ubuntu 12.04.
I don't think vanilla git supports pushing over ftp.
There are plugins like https://github.com/resmo/git-ftp tho.
Philippe
Thomas Ferris Nicolaisen· Oct 5, 2012, 15:21 UTC · lore

Re: Fw: How do I git-push to an FTP server?

On Fri, Oct 5, 2012 at 3:46 PM, Philippe Vaucher <philippe.vaucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Show 7 quoted lines
>
> > On the git-users mailing list we're trying someone to help with
> > running `git push` over FTP.  That person is runnig Git 1.7.9.5
> > on Ubuntu 12.04.
>
> I don't think vanilla git supports pushing over ftp.
>
At least according to the documentation[1], "Git natively supports [...] ftp".
This could need some clarification if pushing over ftp is not supported.
[1] http://www.kernel.org/pub/software/scm/git/docs/git-push.html#URLS
-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Konstantin Khomoutov· Oct 5, 2012, 17:38 UTC · lore

Re: Fw: How do I git-push to an FTP server?

On Fri, 5 Oct 2012 15:46:33 +0200 Philippe Vaucher <philippe.vaucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Show 7 quoted lines
> > On the git-users mailing list we're trying someone to help with
> > running `git push` over FTP.  That person is runnig Git 1.7.9.5
> > on Ubuntu 12.04.
> 
> I don't think vanilla git supports pushing over ftp.
> 
> There are plugins like https://github.com/resmo/git-ftp tho.

git-ftp's functionality is completely orthogonal to `git push` -- this script allows to sync a tree referenced by the specified Git commit with a remote directory accessible via FTP, transferring only new and modified files and deleting disappeared files and directories. IOW, git-ftp is a (very handy) Git-powered *deployment* tool, not a backend for `git push` or something like that.

-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Junio C Hamano· Oct 5, 2012, 21:48 UTC · lore

Re: Fw: How do I git-push to an FTP server?

Thomas Ferris Nicolaisen <tfnico-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
Show 13 quoted lines
> On Fri, Oct 5, 2012 at 3:46 PM, Philippe Vaucher
> <philippe.vaucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>> > On the git-users mailing list we're trying someone to help with
>> > running `git push` over FTP.  That person is runnig Git 1.7.9.5
>> > on Ubuntu 12.04.
>>
>> I don't think vanilla git supports pushing over ftp.
>>
>
> At least according to the documentation[1], "Git natively supports [...] ftp".
>
> This could need some clarification if pushing over ftp is not supported.

The commit 5ce4f4e (Documentation/urls: Rewrite to accomodate <transport>::<address>, 2010-04-06) that came from

  http://thread.gmane.org/gmane.comp.version-control.git/145196/focus=145205

was supposed to be just a clarification of the document, but it added ftp to the list without justification. Its earlier round is this

    http://thread.gmane.org/gmane.comp.version-control.git/143499

and it did not mention ftp; I wonder why we missed this addition during the review process.

The ftp transport might have worked for fetching in the distant past for "dumb and slow" commit walking fetches, but it was never supposed to work with any kind of pushes as far as I know. I wouldn't be surprised if the dumb and slow commit walking fetch no longer works with ftp.

-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Ramkumar Ramachandra· Oct 7, 2012, 15:28 UTC · re: Junio C Hamano · lore

Re: Fw: [git-users] How do I git-push to an FTP server?

Junio C Hamano wrote:
Show 23 quoted lines
> Thomas Ferris Nicolaisen <tfnico@gmail.com> writes:
>
>> On Fri, Oct 5, 2012 at 3:46 PM, Philippe Vaucher
>> <philippe.vaucher@gmail.com> wrote:
>>>
>>> > On the git-users mailing list we're trying someone to help with
>>> > running `git push` over FTP.  That person is runnig Git 1.7.9.5
>>> > on Ubuntu 12.04.
>>>
>>> I don't think vanilla git supports pushing over ftp.
>>>
>>
>> At least according to the documentation[1], "Git natively supports [...] ftp".
>>
>> This could need some clarification if pushing over ftp is not supported.
>
> The commit 5ce4f4e (Documentation/urls: Rewrite to accomodate
> <transport>::<address>, 2010-04-06) that came from
>
>   http://thread.gmane.org/gmane.comp.version-control.git/145196/focus=145205
>
> was supposed to be just a clarification of the document, but it
> added ftp to the list without justification.
Hm, my bad.  Would this fix the problem?
-- 8< --
From: Ramkumar Ramachandra <artagnon@gmail.com>
Date: Sun, 7 Oct 2012 20:57:15 +0530
Subject: [PATCH] Documentation/urls: git does not natively support ftp

5ce4f4e (Documentation/urls: Rewrite to accomodate <transport>::<address>, 2010-04-06) added ftp[s] to the list of supported protocols without justification. Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 Documentation/urls.txt | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index 2890194..a65e894 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -6,13 +6,12 @@ address of the remote server, and the path to the repository.
 Depending on the transport protocol, some of this information may be
 absent.

-Git natively supports ssh, git, http, https, ftp, ftps, and rsync
-protocols. The following syntaxes may be used with them:
+Git natively supports ssh, git, http, https, and rsync protocols. The
+following syntaxes may be used with them:

 - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
 - git://host.xz{startsb}:port{endsb}/path/to/repo.git/
 - http{startsb}s{endsb}://host.xz{startsb}:port{endsb}/path/to/repo.git/
-- ftp{startsb}s{endsb}://host.xz{startsb}:port{endsb}/path/to/repo.git/
 - rsync://host.xz/path/to/repo.git/

 An alternative scp-like syntax may also be used with the ssh protocol:
-- 
1.7.12.1.428.g652398a.dirty
Jonathan Nieder· Oct 7, 2012, 17:27 UTC · re: Ramkumar Ramachandra · lore

Re: Fw: [git-users] How do I git-push to an FTP server?

Ramkumar Ramachandra wrote:
>> Thomas Ferris Nicolaisen <tfnico@gmail.com> writes:
>>> At least according to the documentation[1], "Git natively supports [...] ftp".
>>>
>>> This could need some clarification if pushing over ftp is not supported.
[...]
> -Git natively supports ssh, git, http, https, ftp, ftps, and rsync
> -protocols. The following syntaxes may be used with them:
> +Git natively supports ssh, git, http, https, and rsync protocols. The
> +following syntaxes may be used with them:

Perhaps the initial list should not be exhaustive, in which case we could say:

	Git natively supports ssh, git, http, and https protocols.  The
	following syntaxes may be used with them:
	...
	Git also has (less efficient) support for fetching and pushing
	over rsync protocol and fetching over ftp or ftps, using the
	same "protocol://host/path/to/repo.git/" syntax.
Junio C Hamano· Oct 7, 2012, 20:46 UTC · lore

Re: Fw: How do I git-push to an FTP server?

Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
Show 23 quoted lines
> Ramkumar Ramachandra wrote:
>>> Thomas Ferris Nicolaisen <tfnico-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>>>> At least according to the documentation[1], "Git natively supports [...] ftp".
>>>>
>>>> This could need some clarification if pushing over ftp is not supported.
> [...]
>> -Git natively supports ssh, git, http, https, ftp, ftps, and rsync
>> -protocols. The following syntaxes may be used with them:
>> +Git natively supports ssh, git, http, https, and rsync protocols. The
>> +following syntaxes may be used with them:
>
> Perhaps the initial list should not be exhaustive, in which case we
> could say:
>
> 	Git natively supports ssh, git, http, and https protocols.  The
> 	following syntaxes may be used with them:
>
> 	...
>
> 	Git also has (less efficient) support for fetching and pushing
> 	over rsync protocol and fetching over ftp or ftps, using the
> 	same "protocol://host/path/to/repo.git/" syntax.

Yeah, that, possibly with "These are deprecated; do not use them.", would be a better way forward. As we deprecated "rsync" long time ago, perhaps we should remove it at Git 2.0 or somewhere around that.

By the way, that old patch by Ram in question was *not* incorrect per-se back then when dumb http was still more prevalent option between the two http transports. Fetching over dumb http and dumb ftp were both equally bad ;-) It just has become less relevant as more people start equating http with the smart http, where there is no equivalent "smart ftp".

-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Ramkumar Ramachandra· Oct 8, 2012, 07:23 UTC · re: Junio C Hamano · lore

Re: Fw: [git-users] How do I git-push to an FTP server?

Junio C Hamano wrote:
Show 30 quoted lines
> Jonathan Nieder <jrnieder@gmail.com> writes:
>
>> Ramkumar Ramachandra wrote:
>>>> Thomas Ferris Nicolaisen <tfnico@gmail.com> writes:
>>
>>>>> At least according to the documentation[1], "Git natively supports [...] ftp".
>>>>>
>>>>> This could need some clarification if pushing over ftp is not supported.
>> [...]
>>> -Git natively supports ssh, git, http, https, ftp, ftps, and rsync
>>> -protocols. The following syntaxes may be used with them:
>>> +Git natively supports ssh, git, http, https, and rsync protocols. The
>>> +following syntaxes may be used with them:
>>
>> Perhaps the initial list should not be exhaustive, in which case we
>> could say:
>>
>>       Git natively supports ssh, git, http, and https protocols.  The
>>       following syntaxes may be used with them:
>>
>>       ...
>>
>>       Git also has (less efficient) support for fetching and pushing
>>       over rsync protocol and fetching over ftp or ftps, using the
>>       same "protocol://host/path/to/repo.git/" syntax.
>
> Yeah, that, possibly with "These are deprecated; do not use them.",
> would be a better way forward.  As we deprecated "rsync" long time
> ago, perhaps we should remove it at Git 2.0 or somewhere around
> that.
I see.  Will we remove ftp[s] support too?  I hope this is in order.
-- 8< --
From: Ramkumar Ramachandra <artagnon@gmail.com>
Date: Sun, 7 Oct 2012 20:57:15 +0530
Subject: [PATCH] Documentation/urls: mark rsync and ftp[s] as deprecated

Fetching and pushing over rsync, and fetching over ftp or ftps are deprecated, and will soon be removed. Add a note saying this.

Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 Documentation/urls.txt | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index 2890194..653b61c 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -6,14 +6,12 @@ address of the remote server, and the path to the repository.
 Depending on the transport protocol, some of this information may be
 absent.

-Git natively supports ssh, git, http, https, ftp, ftps, and rsync
-protocols. The following syntaxes may be used with them:
+Git natively supports ssh, git, http, and https protocols. The
+following syntaxes may be used with them:

 - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
 - git://host.xz{startsb}:port{endsb}/path/to/repo.git/
 - http{startsb}s{endsb}://host.xz{startsb}:port{endsb}/path/to/repo.git/
-- ftp{startsb}s{endsb}://host.xz{startsb}:port{endsb}/path/to/repo.git/
-- rsync://host.xz/path/to/repo.git/

 An alternative scp-like syntax may also be used with the ssh protocol:

@@ -31,6 +29,11 @@ syntaxes may be used:
 - /path/to/repo.git/
 - file:///path/to/repo.git/

+ Git also has (less efficient) support for fetching and pushing over
+ rsync protocol and fetching over ftp or ftps, using the same
+ "protocol://host/path/to/repo.git/" syntax.  However, these are
+ deprecated, and will soon be removed.
+
 ifndef::git-clone[]
 These two syntaxes are mostly equivalent, except when cloning, when
 the former implies --local option. See linkgit:git-clone[1] for
-- 
1.7.12.1.428.g652398a.dirty
Jonathan Nieder· Oct 8, 2012, 08:02 UTC · re: Ramkumar Ramachandra · lore

Re: Fw: [git-users] How do I git-push to an FTP server?

Ramkumar Ramachandra wrote:
> I see.  Will we remove ftp[s] support too?  I hope this is in order.

I don't see why that would be desirable, as long as libcurl continues to support it for free.

[...]
> Fetching and pushing over rsync, and fetching over ftp or ftps are
> deprecated, and will soon be removed.  Add a note saying this.

I thought the real rationale was to avoid creating the illusion of supporting push over ftp. Having a paper trail to comfort people who notice when rsync support vanishes is just an added bonus.

[...]
Show 8 quoted lines
> @@ -31,6 +29,11 @@ syntaxes may be used:
>  - /path/to/repo.git/
>  - file:///path/to/repo.git/
> 
> + Git also has (less efficient) support for fetching and pushing over
> + rsync protocol and fetching over ftp or ftps, using the same
> + "protocol://host/path/to/repo.git/" syntax.  However, these are
> + deprecated, and will soon be removed.

I'd suggest dropping ", and will soon be removed." or replacing it with ". Don't use them." to avoid the question of how soon "soon" is.

With that change and with a clearer commit message, this will probably be good to go imho.

Thanks, Jonathan

Junio C Hamano· Oct 8, 2012, 15:39 UTC · lore

Re: Fw: How do I git-push to an FTP server?

Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
Show 5 quoted lines
> I'd suggest dropping ", and will soon be removed." or replacing it
> with ". Don't use them." to avoid the question of how soon "soon" is.
>
> With that change and with a clearer commit message, this will probably
> be good to go imho.
Yup; thanks.
-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Junio C Hamano· Oct 8, 2012, 17:26 UTC · lore

Re: Fw: How do I git-push to an FTP server?

Junio C Hamano <gitster-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> writes:
Show 9 quoted lines
> Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> I'd suggest dropping ", and will soon be removed." or replacing it
>> with ". Don't use them." to avoid the question of how soon "soon" is.
>>
>> With that change and with a clearer commit message, this will probably
>> be good to go imho.
>
> Yup; thanks.
Let's do this, then.
-- >8 --
From: Ramkumar Ramachandra <artagnon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Git url doc: mark ftp/ftps as read-only and deprecate them

It is not even worth mentioning their removal; just discourage people from using them.

Signed-off-by: Ramkumar Ramachandra <artagnon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Helped-by: Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Signed-off-by: Junio C Hamano <gitster-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
---
 Documentation/urls.txt | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git i/Documentation/urls.txt w/Documentation/urls.txt
index 2890194..1d15ee7 100644
--- i/Documentation/urls.txt
+++ w/Documentation/urls.txt
@@ -6,8 +6,12 @@ address of the remote server, and the path to the repository.
 Depending on the transport protocol, some of this information may be
 absent.
 
-Git natively supports ssh, git, http, https, ftp, ftps, and rsync
-protocols. The following syntaxes may be used with them:
+Git supports ssh, git, http, and https protocols (in addition, ftp,
+and ftps can be used for fetching and rsync can be used for fetching
+and pushing, but these are inefficient and deprecated; do not use
+them).
+
+The following syntaxes may be used with them:
 
 - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/
 - git://host.xz{startsb}:port{endsb}/path/to/repo.git/
-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Jonathan Nieder· Oct 8, 2012, 20:18 UTC · re: Junio C Hamano · lore

Re: Fw: [git-users] How do I git-push to an FTP server?

Junio C Hamano wrote:
> Let's do this, then.

I think it would be nicer to start with the important info (git supports ssh, git, http, https) and deal with less important parts like rsync support later in the document, but this looks like a good minimal fix. Thanks for pushing it to completion.

For what it's worth,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Junio C Hamano· Oct 8, 2012, 21:38 UTC · lore

Re: Fw: How do I git-push to an FTP server?

Thanks.
-- 
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/git-users?hl=en.

← back to recent threads