From: Amos King <amos.l.king@gmail.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH 2/2] Allow http authentication via prompt for http push.
Date: Thu, 19 Mar 2009 18:22:14 -0500 [thread overview]
Message-ID: <d8c371a80903191622i285211d1rebb57854c93babf3@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0903191755270.6357@intel-tinevez-2-302>
Sorry for the way I responded. It was not very appropriate of me. I
do think that if you would take a little tact in your approach that
you would keep developers trying to improve the code they are putting
into git, and trying to contribute more often.
Amos
On Thu, Mar 19, 2009 at 11:59 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Thu, 19 Mar 2009, Amos King wrote:
>
>> There is now a faux remote created in order to
>> be passed to http_init.
>>
>> Signed-off-by: Amos King <amos.l.king@gmail.com>
>> ---
>> http-push.c | 11 ++++++++++-
>> 1 files changed, 10 insertions(+), 1 deletions(-)
>>
>> diff --git a/http-push.c b/http-push.c
>> index 9ac2664..468d5af 100644
>> --- a/http-push.c
>> +++ b/http-push.c
>> @@ -2195,7 +2195,16 @@ int main(int argc, char **argv)
>>
>> memset(remote_dir_exists, -1, 256);
>>
>> - http_init(NULL);
>> + /*
>> + * This is a faked remote so that http_init can
>> + * get the correct data for builidng out athorization.
>> + */
>
> You might want to pass this through aspell ;-) Altough it will not
> suggest 'out ->our', I guess...
>
>> + struct remote *remote;
>> + remote = xcalloc(sizeof(*remote), 1);
>> + ALLOC_GROW(remote->url, remote->url_nr + 1, remote->url_alloc);
>> + remote->url[remote->url_nr++] = repo->url;
>> +
>> + http_init(remote);
>
> Would 'fake' not be a more appropriate name than 'remote'?
>
> That would also make the patch 1/2 rather unnecessary (I also have to
> admit that I do not find 'repo' a better name, as we have a repository
> both locally and remotely, and this _is_ the remote repository, not the
> local one).
>
> Ciao,
> Dscho
>
>
--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
prev parent reply other threads:[~2009-03-19 23:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 15:12 [PATCH 2/2] Allow http authentication via prompt for http push Amos King
2009-03-19 16:59 ` Johannes Schindelin
2009-03-19 19:02 ` Amos King
2009-03-20 8:49 ` Michael J Gruber
2009-03-20 12:38 ` Amos King
2009-03-20 13:25 ` Michael J Gruber
2009-03-19 23:22 ` Amos King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8c371a80903191622i285211d1rebb57854c93babf3@mail.gmail.com \
--to=amos.l.king@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).