hadi-guang / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

Allow pattern for fetch URL in repo manifest #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Repo expects git repository names to end with suffix ".git".

To support repositories not ending with ".git" repo's manifest should
support patterns for fetch URLs in its <remote> section.

Example:
<remote 
    name="sfnet"
    fetch="git://komma.git.sourceforge.net/gitroot/komma/{project}"
/>

Proposed fix:
The function ToRemoteSpec in manifest_xml.py should test if self.fetchUrl
contains the placeholder "{project}". 
If this is the case then "{project}" is replaced by "%s" else the default
behaviour is triggered and "/%s.git" is appended.

Original issue reported on code.google.com by knw...@gmail.com on 12 May 2010 at 10:00