Re: Fw: [git-users] How do I git-push to an FTP server?
Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Junio C Hamano writes: > Jonathan Nieder 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 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 Helped-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- 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/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Jonathan Nieder 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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. [...] > @@ -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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Junio C Hamano wrote: > Jonathan Nieder writes: > >> Ramkumar Ramachandra wrote: Thomas Ferris Nicolaisen 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 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 Signed-off-by: Ramkumar Ramachandra --- 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Jonathan Nieder writes: > Ramkumar Ramachandra wrote: >>> Thomas Ferris Nicolaisen 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". -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Ramkumar Ramachandra wrote: >> Thomas Ferris Nicolaisen 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Junio C Hamano wrote: > Thomas Ferris Nicolaisen writes: > >> On Fri, Oct 5, 2012 at 3:46 PM, Philippe Vaucher >> 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 > ::, 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 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 ::, 2010-04-06) added ftp[s] to the list of supported protocols without justification. Fix this. Signed-off-by: Ramkumar Ramachandra --- 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
Thomas Ferris Nicolaisen writes: > On Fri, Oct 5, 2012 at 3:46 PM, Philippe Vaucher > 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 ::, 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
On Fri, 5 Oct 2012 15:46:33 +0200 Philippe Vaucher 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fw: [git-users] How do I git-push to an FTP server?
On Fri, Oct 5, 2012 at 3:46 PM, Philippe Vaucher 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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. 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 To: git...@googlegroups.com Cc: August Karlstrom 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 > 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: