git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: know wget URL, need git-clone URL

From
Andreas Ericsson <ae@op5.se>
Date
Nov 27, 2008, 09:00 UTC
Message-ID
<492E61A6.5060800@op5.se>
In-Reply-To
<87bpw1hkqx.fsf@jidanni.org>
jidanni@jidanni.org wrote:
> I wish the git beginner documentation would tell one how to translate
> e.g., http://git.debian.org/?p=pkg-fso/files.git&a=blob_plain&f=install.sh
> which is good for wget, to the URL one needs for git-clone to get the
> same file.

You can't use "git clone" to get a single file. You can only get the entire repository using "git clone". Usually, the clone-url is written somewhere on the projects gitweb page, and that is also the case for this repository.

If you visit http://git.debian.org/?p=pkg-fso/files.git;a=summary you'll find this section on that page:

URL	git://git.debian.org/git/pkg-fso/files.git
	http://git.debian.org/git/pkg-fso/files.git

It's impossible to infer the clone url from the gitweb url, because there's absolutely no connection between them (that will change if gitweb gains fetch/clone support), and the paths/urls depends on the servers configuration which we cannot know.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: jidanni@jidanni.org
Message 2 of 2 in “know wget URL, need git-clone URL”
  1. jidanni@jidanni.orgNov 27, 2008
  2. Andreas EricssonNov 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.