{"thread":{"id":"16492","subject":"know wget URL, need git-clone URL","startedAt":"2008-11-27T04:10:30Z","lastAt":"2008-11-27T09:00:22Z","messageCount":2,"participants":["jidanni@jidanni.org","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96602","messageId":"87bpw1hkqx.fsf@jidanni.org","threadId":"16492","inReplyTo":null,"subject":"know wget URL, need git-clone URL","fromName":"","fromEmail":"jidanni@jidanni.org","sentAt":"2008-11-27T04:10:30Z","receivedAt":"2008-11-27T04:10:30Z","isPatch":false,"sender":{"key":"jidanni@jidanni.org","avatar":"https://gravatar.com/avatar/36568d4af4c8d3e71627ef3b8c8d00e39065b12f29676cccd38ced75e68fa2a6?d=mp&s=160"},"body":"I wish the git beginner documentation would tell one how to translate\ne.g., http://git.debian.org/?p=pkg-fso/files.git&a=blob_plain&f=install.sh\nwhich is good for wget, to the URL one needs for git-clone to get the\nsame file.\n"},{"id":"96610","messageId":"492E61A6.5060800@op5.se","threadId":"16492","inReplyTo":"87bpw1hkqx.fsf@jidanni.org","subject":"Re: know wget URL, need git-clone URL","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-11-27T09:00:22Z","receivedAt":"2008-11-27T09:00:22Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"jidanni@jidanni.org wrote:\n> I wish the git beginner documentation would tell one how to translate\n> e.g., http://git.debian.org/?p=pkg-fso/files.git&a=blob_plain&f=install.sh\n> which is good for wget, to the URL one needs for git-clone to get the\n> same file.\n\nYou can't use \"git clone\" to get a single file. You can only get the\nentire repository using \"git clone\". Usually, the clone-url is written\nsomewhere on the projects gitweb page, and that is also the case for\nthis repository.\n\nIf you visit http://git.debian.org/?p=pkg-fso/files.git;a=summary you'll\nfind this section on that page:\n\nURL\tgit://git.debian.org/git/pkg-fso/files.git\n\thttp://git.debian.org/git/pkg-fso/files.git\n\nIt's impossible to infer the clone url from the gitweb url, because there's\nabsolutely no connection between them (that will change if gitweb gains\nfetch/clone support), and the paths/urls depends on the servers configuration\nwhich we cannot know.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}