threads / discuss / 31047

clone URL missing in gitweb

Subject: clone URL missing in gitweb

## tl;dr

6 messages between Jul 18, 2012 and Jul 18, 2012.

replies: 5people: 2as markdown or json

baluchen· Jul 18, 2012, 06:07 UTC · lore
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· Jul 18, 2012, 06:58 UTC · re: baluchen · lore

Re: clone URL missing in gitweb

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· Jul 18, 2012, 08:30 UTC · re: Thomas Hager · lore

Re: clone URL missing in gitweb

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· Jul 18, 2012, 08:59 UTC · re: baluchen · lore

Re: clone URL missing in gitweb

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· Jul 18, 2012, 10:26 UTC · re: Thomas Hager · lore

Re: clone URL missing in gitweb

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· Jul 18, 2012, 14:39 UTC · re: baluchen · lore

Re: clone URL missing in gitweb

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."

← back to recent threads