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

2012-10-05 Thread Philippe Vaucher
> 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


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

2012-10-05 Thread Thomas Ferris Nicolaisen
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?

2012-10-05 Thread Konstantin Khomoutov
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?

2012-10-05 Thread Junio C Hamano
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?

2012-10-07 Thread Ramkumar Ramachandra
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?

2012-10-07 Thread Jonathan Nieder
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?

2012-10-07 Thread Junio C Hamano
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?

2012-10-08 Thread Ramkumar Ramachandra
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?

2012-10-08 Thread Jonathan Nieder
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?

2012-10-08 Thread Junio C Hamano
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?

2012-10-08 Thread Junio C Hamano
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?

2012-10-08 Thread Jonathan Nieder
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?

2012-10-08 Thread Junio C Hamano
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