Permalink
Browse files

Change the manifest syntax to make project name substitution optional

  • Loading branch information...
1 parent c136f18 commit 24cbe7e69caf826c1461aa3d940d0b9b788ec092 Matt Massie committed Jul 23, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 crepo.py
  2. +3 −3 test/test_manifest.json
View
@@ -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
@@ -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"]}
}

0 comments on commit 24cbe7e

Please sign in to comment.