You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Guillaume Smet <gu...@gmail.com> on 2013/06/10 10:18:09 UTC

Wrong git URL on website

Hi,

In http://wicket.apache.org/contribute/build.html, the URL used for
the git clone is now a redirect to a gitweb instance:
$ git clone http://git-wip-us.apache.org/repos/asf/wicket.git
redirects to:
https://git-wip-us.apache.org/repos/asf?p=wicket.git
which isn't a valid git repository.

After some digging on the Apache website, it looks like
http://git.apache.org/wicket.git/ is a valid url for cloning the
Wicket repository.

-- 
Guillaume

Re: Wrong git URL on website

Posted by Guillaume Smet <gu...@gmail.com>.
On Mon, Jun 10, 2013 at 10:38 AM, Martin Grigorov <mg...@apache.org> wrote:
>> It doesn't work in Eclipse with Egit and the git Maven connector. Egit
>> throws an error complaining about a 302 Found when I try to checkout
>> the Maven projects.

I'll take a look at the requests made by the connector with Wireshark
to see if we can make it work by tweaking the redirect.

"Checkout as Maven project" is a nice feature of Eclipse.

-- 
Guillaume

Re: Wrong git URL on website

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Jun 10, 2013 at 11:34 AM, Guillaume Smet
<gu...@gmail.com>wrote:

> On Mon, Jun 10, 2013 at 10:29 AM, Martin Grigorov <mg...@apache.org>
> wrote:
> > This is the correct one.
> > If you open it in the browser then it will redirect, but if you use any
> Git
> > client then it will work.
> > 'http' is for read-only and 'https' is for write access.
>
> It doesn't work in Eclipse with Egit and the git Maven connector. Egit
> throws an error complaining about a 302 Found when I try to checkout
> the Maven projects.
>
>
This is how my .git/config looks like:

[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
 url = http://mgrigorov@git-wip-us.apache.org/repos/asf/wicket.git

(Interesting - it is not http*s* and I can push!)


> That's how I got the error in the first place.
>
> Might be an Egit problem or a Maven connector problem though.
>
> I'm going to use the github mirror.
>

Be aware that GitHub mirror is few hours behind. I.e. you will not see the
changes immediately after push in Apache Git repo.


>
> --
> Guillaume
>

Re: Wrong git URL on website

Posted by Guillaume Smet <gu...@gmail.com>.
On Mon, Jun 10, 2013 at 10:29 AM, Martin Grigorov <mg...@apache.org> wrote:
> This is the correct one.
> If you open it in the browser then it will redirect, but if you use any Git
> client then it will work.
> 'http' is for read-only and 'https' is for write access.

It doesn't work in Eclipse with Egit and the git Maven connector. Egit
throws an error complaining about a 302 Found when I try to checkout
the Maven projects.

That's how I got the error in the first place.

Might be an Egit problem or a Maven connector problem though.

I'm going to use the github mirror.

-- 
Guillaume

Re: Wrong git URL on website

Posted by Martin Grigorov <mg...@apache.org>.
Hi,


On Mon, Jun 10, 2013 at 11:18 AM, Guillaume Smet
<gu...@gmail.com>wrote:

> Hi,
>
> In http://wicket.apache.org/contribute/build.html, the URL used for
> the git clone is now a redirect to a gitweb instance:
> $ git clone http://git-wip-us.apache.org/repos/asf/wicket.git


This is the correct one.
If you open it in the browser then it will redirect, but if you use any Git
client then it will work.
'http' is for read-only and 'https' is for write access.


> redirects to:
> https://git-wip-us.apache.org/repos/asf?p=wicket.git
> which isn't a valid git repository.
>
> After some digging on the Apache website, it looks like
> http://git.apache.org/wicket.git/ is a valid url for cloning the
> Wicket repository.
>

This is a mirror from that days when Wicket was still using SVN.
It is also used by GitHub to mirror our project (
https://github.com/apache/wicket)


>
> --
> Guillaume
>