Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change the manifest syntax to make project name substitution optional

  • Loading branch information...
commit 24cbe7e69caf826c1461aa3d940d0b9b788ec092 1 parent c136f18
Matt Massie authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  crepo.py
  2. +3 −3 test/test_manifest.json
View
2  crepo.py
@@ -34,7 +34,7 @@ def init(args):
for (name, project) in man.projects.iteritems():
logging.warn("Initializing project: %s" % name)
clone_remote = man.remotes[project.from_remote]
- clone_url = clone_remote.fetch % name
+ clone_url = clone_remote.fetch % {"name": name}
p = GitCommand(None, ["clone", "-o", project.from_remote, "-n", clone_url, project.dir])
p.Wait()
View
6 test/test_manifest.json
@@ -3,12 +3,12 @@
"default-revision": "master",
"remotes":
- {"origin": { "fetch": "ssh://git@git.sf.cloudera.com/%s.git" },
- "apache": { "fetch": "ssh://git@git.sf.cloudera.com/apache-%s.git" }},
+ {"origin": { "fetch": "ssh://git@git.sf.cloudera.com/%(name)s.git" },
+ "apache": { "fetch": "ssh://git@git.sf.cloudera.com/apache-%(name)s.git" }},
"projects":
{"hadoop": {},
- "pig": {"refspec": "rapleaf",
+ "pig": {"refspec": "0.3.0",
"dir": "my-pig-dir",
"remotes": ["origin", "apache"]}
}
Please sign in to comment.
Something went wrong with that request. Please try again.