# clone URL missing in gitweb

6 messages from 2012-07-18 to 2012-07-18. Participants: baluchen, Thomas Hager.
Thread: https://gitlist.dev/t/31047

## baluchen, 2012-07-18 06:07

Subject: clone URL missing in gitweb
Message-ID: <1342591638170-7563176.post@n2.nabble.com>
URL: https://gitlist.dev/e/1342591638170-7563176.post%40n2.nabble.com

```
Hi,

I setup gitweb and it is working. When you click any project in gitweb
following information will be displayed

cloning git clone http://vvvv.domain.com/git/Android/Abalone.git 
description email client - web hybrid 
owner ciebv245a daemon 
last change Thu, 10 May 2012 15:44:36 +0000 


But in my setup i coould not find "cloaning" option

How do i get http url as you see blow

http://git.kernel.org/?p=bluetooth/bluez-gnome.git;a=summary

description Bluetooth applications for GNOME 
owner Marcel Holtmann 
URL git://git.kernel.org/pub/scm/bluetooth/bluez-gnome.git 
 http://git.kernel.org/pub/scm/bluetooth/bluez-gnome.git 
 https://git.kernel.org/pub/scm/bluetooth/bluez-gnome.git 


--
View this message in context: http://git.661346.n2.nabble.com/clone-URL-missing-in-gitweb-tp7563176.html
Sent from the git mailing list archive at Nabble.com.

```

## Thomas Hager, 2012-07-18 06:58

Subject: Re: clone URL missing in gitweb
Message-ID: <20120718085853.1702340b2uu0gmnh@webmail.moger.at>
URL: https://gitlist.dev/e/20120718085853.1702340b2uu0gmnh%40webmail.moger.at
In-Reply-To: <1342591638170-7563176.post@n2.nabble.com>

```
Quoting baluchen <murugan.bala@gmail.com>:
> Hi,
hi,

> But in my setup i coould not find "cloaning" option
cloneurl is a "per repository" option, which is set as config option  
in your repository. see "man gitweb" for details.

what you're probably searching for is the global option  
"git_base_url_list", which is used by gitweb to generate the clone URLs.

hth,
tom.

-- 
Thomas "Duke" Hager                               duke@sigsegv.at
GPG: 2048R/791C5EB1            http://www.sigsegv.at/gpg/duke.gpg
=================================================================
"Never Underestimate the Power of Stupid People in Large Groups."

```

## baluchen, 2012-07-18 08:30

Subject: Re: clone URL missing in gitweb
Message-ID: <1342600220487-7563196.post@n2.nabble.com>
URL: https://gitlist.dev/e/1342600220487-7563196.post%40n2.nabble.com
In-Reply-To: <20120718085853.1702340b2uu0gmnh@webmail.moger.at>

```
Thanks tom. 

I verified and i have following line in my gitweb.cgi. But still i caould
not get cloan

our @git_base_url_list = grep { $_ ne '' } ("");
        @url_list = map { "$_/$project" } @git_base_url_list unless
@url_list;

        # use per project git URL list in $projectroot/$project/cloneurl
        # or make project git URL from git base URL and project name
        my $url_tag = "URL";
        my @url_list = git_get_project_url_list($project);
        @url_list = map { "$_/$project" } @git_base_url_list unless
@url_list;
        foreach my $git_url (@url_list) {
                next unless $git_url;
                print format_repo_url($url_tag, $git_url);
                $url_tag = ""; 
        }



Thanks
Bala

--
View this message in context: http://git.661346.n2.nabble.com/clone-URL-missing-in-gitweb-tp7563176p7563196.html
Sent from the git mailing list archive at Nabble.com.

```

## Thomas Hager, 2012-07-18 08:59

Subject: Re: clone URL missing in gitweb
Message-ID: <20120718105902.93105axz8oj5a5ee@webmail.moger.at>
URL: https://gitlist.dev/e/20120718105902.93105axz8oj5a5ee%40webmail.moger.at
In-Reply-To: <1342600220487-7563196.post@n2.nabble.com>

```
Quoting baluchen <murugan.bala@gmail.com>:
> I verified and i have following line in my gitweb.cgi. But still i caould
> not get cloan
and what does your configuration of gitweb look like?

and what do mean with "But still i caould not get cloan"?
are you trying to clone via gitweb?

bye,
tom.

-- 
Thomas "Duke" Hager                               duke@sigsegv.at
GPG: 2048R/791C5EB1            http://www.sigsegv.at/gpg/duke.gpg
=================================================================
"Never Underestimate the Power of Stupid People in Large Groups."

```

## baluchen, 2012-07-18 10:26

Subject: Re: clone URL missing in gitweb
Message-ID: <1342607206983-7563199.post@n2.nabble.com>
URL: https://gitlist.dev/e/1342607206983-7563199.post%40n2.nabble.com
In-Reply-To: <20120718105902.93105axz8oj5a5ee@webmail.moger.at>

```
Tom,

I verified the entries and they seems to be correct. But the clone and its
URL is still now showing when browsing project summary page via gitweb

Thanks
Bala

--
View this message in context: http://git.661346.n2.nabble.com/clone-URL-missing-in-gitweb-tp7563176p7563199.html
Sent from the git mailing list archive at Nabble.com.

```

## Thomas Hager, 2012-07-18 14:39

Subject: Re: clone URL missing in gitweb
Message-ID: <20120718163925.79825k3b7o7lcfj1@webmail.moger.at>
URL: https://gitlist.dev/e/20120718163925.79825k3b7o7lcfj1%40webmail.moger.at
In-Reply-To: <1342607206983-7563199.post@n2.nabble.com>

```
Quoting baluchen <murugan.bala@gmail.com>:
> I verified the entries and they seems to be correct. But the clone and its
> URL is still now showing when browsing project summary page via gitweb
well, unless you at least post the most relevant options of your  
gitweb config, i'm afraid i cannot help you. maybe a snippet of mine  
gives you a hint:

##
##  gitweb.config.pl -- gitweb Perl configuration
##
our $projectroot = "/var/lib/git/repositories";
our $projects_list = "/var/lib/git/projects.list";
our $site_name = "Git Home";
our @git_base_url_list = grep { $_ ne '' } ("https://git.company.org/git");
[...]

with this config, gitweb displays the clone url of a repository  
"dummy.git" located in "/var/lib/git/repositories" as

https://git.company.org/git/dummy.git

bye,
tom.

-- 
Thomas "Duke" Hager                               duke@sigsegv.at
GPG: 2048R/791C5EB1            http://www.sigsegv.at/gpg/duke.gpg
=================================================================
"Never Underestimate the Power of Stupid People in Large Groups."

```
