summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-07-03 17:24:17 -0700
committerShawn O. Pearce <sop@google.com>2009-07-03 20:50:52 -0700
commit5f947bba69de81f58f1adef10225c04727fa0ed5 (patch)
tree96da97d3e570c4b2238c807700060c144b333d09 /project.py
parentb3d2c9214be60f575d64b3af3b87a3632de04ba0 (diff)
downloadgit-repo-5f947bba69de81f58f1adef10225c04727fa0ed5.tar.gz
init: add -o, --origin to name manifest remote
The -o option permits the user to control the name of the manifest's remote, which normally is hardcoded to be 'origin', but can differ because we derive it at runtime from the configuration file. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'project.py')
-rw-r--r--project.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/project.py b/project.py
index 6188ca72..c79e8fb9 100644
--- a/project.py
+++ b/project.py
@@ -1442,10 +1442,12 @@ class MetaProject(Project):
1442 if self.Exists: 1442 if self.Exists:
1443 cb = self.CurrentBranch 1443 cb = self.CurrentBranch
1444 if cb: 1444 if cb:
1445 base = self.GetBranch(cb).merge 1445 cb = self.GetBranch(cb)
1446 if base: 1446 if cb.merge:
1447 self.revisionExpr = base 1447 self.revisionExpr = cb.merge
1448 self.revisionId = None 1448 self.revisionId = None
1449 if cb.remote and cb.remote.name:
1450 self.remote.name = cb.remote.name
1449 1451
1450 @property 1452 @property
1451 def LastFetch(self): 1453 def LastFetch(self):