git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Fw: How do I git-push to an FTP server?
@ 2012-10-05 13:38 Konstantin Khomoutov
  2012-10-05 13:46 ` Fw: [git-users] " Philippe Vaucher
  0 siblings, 1 reply; 14+ messages in thread
From: Konstantin Khomoutov @ 2012-10-05 13:38 UTC (permalink / raw)
  To: git-u79uwXL29TY76Z2rM5mHXA
  Cc: git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom

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:
>
> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: [git-users] How do I git-push to an FTP server?
  2012-10-05 13:38 Fw: How do I git-push to an FTP server? Konstantin Khomoutov
@ 2012-10-05 13:46 ` Philippe Vaucher
       [not found]   ` <CAGK7Mr4L0Us3ykLUoWBdyR2zJUNa_HNguwb-=dEq_h_yXThPPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Philippe Vaucher @ 2012-10-05 13:46 UTC (permalink / raw)
  To: Konstantin Khomoutov; +Cc: git, git-users, August Karlstrom

> 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]   ` <CAGK7Mr4L0Us3ykLUoWBdyR2zJUNa_HNguwb-=dEq_h_yXThPPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-05 15:21     ` Thomas Ferris Nicolaisen
       [not found]       ` <CAEcj5uW4aw19MgNi8vJk5TWoL6SEad=s2jthS-h1jLTtuPq7AQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2012-10-05 17:38     ` Konstantin Khomoutov
  1 sibling, 1 reply; 14+ messages in thread
From: Thomas Ferris Nicolaisen @ 2012-10-05 15:21 UTC (permalink / raw)
  To: Philippe Vaucher
  Cc: Konstantin Khomoutov, git-u79uwXL29TY76Z2rM5mHXA,
	git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom

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.

[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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]   ` <CAGK7Mr4L0Us3ykLUoWBdyR2zJUNa_HNguwb-=dEq_h_yXThPPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2012-10-05 15:21     ` Fw: " Thomas Ferris Nicolaisen
@ 2012-10-05 17:38     ` Konstantin Khomoutov
  1 sibling, 0 replies; 14+ messages in thread
From: Konstantin Khomoutov @ 2012-10-05 17:38 UTC (permalink / raw)
  To: Philippe Vaucher
  Cc: Konstantin Khomoutov, git-u79uwXL29TY76Z2rM5mHXA,
	git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom

On Fri, 5 Oct 2012 15:46:33 +0200
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.
> 
> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]       ` <CAEcj5uW4aw19MgNi8vJk5TWoL6SEad=s2jthS-h1jLTtuPq7AQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-05 21:48         ` Junio C Hamano
  2012-10-07 15:28           ` Fw: [git-users] " Ramkumar Ramachandra
  0 siblings, 1 reply; 14+ messages in thread
From: Junio C Hamano @ 2012-10-05 21:48 UTC (permalink / raw)
  To: Thomas Ferris Nicolaisen
  Cc: Philippe Vaucher, Konstantin Khomoutov,
	git-u79uwXL29TY76Z2rM5mHXA, git-users-/JYPxA39Uh5TLH3MbocFFw,
	August Karlstrom, Jonathan Nieder, Sverre Rabbelier,
	Ramkumar Ramachandra

Thomas Ferris Nicolaisen <tfnico-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: [git-users] How do I git-push to an FTP server?
  2012-10-05 21:48         ` Junio C Hamano
@ 2012-10-07 15:28           ` Ramkumar Ramachandra
  2012-10-07 17:27             ` Jonathan Nieder
  0 siblings, 1 reply; 14+ messages in thread
From: Ramkumar Ramachandra @ 2012-10-07 15:28 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: Thomas Ferris Nicolaisen, Philippe Vaucher, Konstantin Khomoutov,
	git, git-users, August Karlstrom, Jonathan Nieder,
	Sverre Rabbelier

Junio C Hamano wrote:
> 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: [git-users] How do I git-push to an FTP server?
  2012-10-07 15:28           ` Fw: [git-users] " Ramkumar Ramachandra
@ 2012-10-07 17:27             ` Jonathan Nieder
       [not found]               ` <20121007172754.GA29560-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Nieder @ 2012-10-07 17:27 UTC (permalink / raw)
  To: Ramkumar Ramachandra
  Cc: Junio C Hamano, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git, git-users, August Karlstrom,
	Sverre Rabbelier

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]               ` <20121007172754.GA29560-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
@ 2012-10-07 20:46                 ` Junio C Hamano
  2012-10-08  7:23                   ` Fw: [git-users] " Ramkumar Ramachandra
  0 siblings, 1 reply; 14+ messages in thread
From: Junio C Hamano @ 2012-10-07 20:46 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: Ramkumar Ramachandra, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git-u79uwXL29TY76Z2rM5mHXA,
	git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom,
	Sverre Rabbelier

Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: [git-users] How do I git-push to an FTP server?
  2012-10-07 20:46                 ` Fw: " Junio C Hamano
@ 2012-10-08  7:23                   ` Ramkumar Ramachandra
  2012-10-08  8:02                     ` Jonathan Nieder
  0 siblings, 1 reply; 14+ messages in thread
From: Ramkumar Ramachandra @ 2012-10-08  7:23 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: Jonathan Nieder, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git, git-users, August Karlstrom,
	Sverre Rabbelier

Junio C Hamano wrote:
> 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: [git-users] How do I git-push to an FTP server?
  2012-10-08  7:23                   ` Fw: [git-users] " Ramkumar Ramachandra
@ 2012-10-08  8:02                     ` Jonathan Nieder
       [not found]                       ` <20121008080208.GC19733-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Nieder @ 2012-10-08  8:02 UTC (permalink / raw)
  To: Ramkumar Ramachandra
  Cc: Junio C Hamano, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git, git-users, August Karlstrom,
	Sverre Rabbelier

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.

[...]
> @@ -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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]                       ` <20121008080208.GC19733-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
@ 2012-10-08 15:39                         ` Junio C Hamano
       [not found]                           ` <7v7gr1nfby.fsf-s2KvWo2KEQL18tm6hw+yZpy9Z0UEorGK@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Junio C Hamano @ 2012-10-08 15:39 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: Ramkumar Ramachandra, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git-u79uwXL29TY76Z2rM5mHXA,
	git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom,
	Sverre Rabbelier

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.

-- 
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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]                           ` <7v7gr1nfby.fsf-s2KvWo2KEQL18tm6hw+yZpy9Z0UEorGK@public.gmane.org>
@ 2012-10-08 17:26                             ` Junio C Hamano
  2012-10-08 20:18                               ` Fw: [git-users] " Jonathan Nieder
  0 siblings, 1 reply; 14+ messages in thread
From: Junio C Hamano @ 2012-10-08 17:26 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: Ramkumar Ramachandra, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git-u79uwXL29TY76Z2rM5mHXA,
	git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom,
	Sverre Rabbelier

Junio C Hamano <gitster-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> writes:

> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: [git-users] How do I git-push to an FTP server?
  2012-10-08 17:26                             ` Junio C Hamano
@ 2012-10-08 20:18                               ` Jonathan Nieder
       [not found]                                 ` <20121008201816.GB7698-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Nieder @ 2012-10-08 20:18 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: Ramkumar Ramachandra, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git, git-users, August Karlstrom,
	Sverre Rabbelier

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>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Fw: How do I git-push to an FTP server?
       [not found]                                 ` <20121008201816.GB7698-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
@ 2012-10-08 21:38                                   ` Junio C Hamano
  0 siblings, 0 replies; 14+ messages in thread
From: Junio C Hamano @ 2012-10-08 21:38 UTC (permalink / raw)
  To: Jonathan Nieder
  Cc: Ramkumar Ramachandra, Thomas Ferris Nicolaisen, Philippe Vaucher,
	Konstantin Khomoutov, git-u79uwXL29TY76Z2rM5mHXA,
	git-users-/JYPxA39Uh5TLH3MbocFFw, August Karlstrom,
	Sverre Rabbelier

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-10-08 21:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 13:38 Fw: How do I git-push to an FTP server? Konstantin Khomoutov
2012-10-05 13:46 ` Fw: [git-users] " Philippe Vaucher
     [not found]   ` <CAGK7Mr4L0Us3ykLUoWBdyR2zJUNa_HNguwb-=dEq_h_yXThPPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-05 15:21     ` Fw: " Thomas Ferris Nicolaisen
     [not found]       ` <CAEcj5uW4aw19MgNi8vJk5TWoL6SEad=s2jthS-h1jLTtuPq7AQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-05 21:48         ` Junio C Hamano
2012-10-07 15:28           ` Fw: [git-users] " Ramkumar Ramachandra
2012-10-07 17:27             ` Jonathan Nieder
     [not found]               ` <20121007172754.GA29560-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-07 20:46                 ` Fw: " Junio C Hamano
2012-10-08  7:23                   ` Fw: [git-users] " Ramkumar Ramachandra
2012-10-08  8:02                     ` Jonathan Nieder
     [not found]                       ` <20121008080208.GC19733-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-08 15:39                         ` Fw: " Junio C Hamano
     [not found]                           ` <7v7gr1nfby.fsf-s2KvWo2KEQL18tm6hw+yZpy9Z0UEorGK@public.gmane.org>
2012-10-08 17:26                             ` Junio C Hamano
2012-10-08 20:18                               ` Fw: [git-users] " Jonathan Nieder
     [not found]                                 ` <20121008201816.GB7698-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-10-08 21:38                                   ` Fw: " Junio C Hamano
2012-10-05 17:38     ` Konstantin Khomoutov

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).