summaryrefslogtreecommitdiffstats
path: root/repo
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 /repo
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 'repo')
-rwxr-xr-xrepo6
1 files changed, 5 insertions, 1 deletions
diff --git a/repo b/repo
index f73fa58b..ff7c4188 100755
--- a/repo
+++ b/repo
@@ -28,7 +28,7 @@ if __name__ == '__main__':
28del magic 28del magic
29 29
30# increment this whenever we make important changes to this script 30# increment this whenever we make important changes to this script
31VERSION = (1, 8) 31VERSION = (1, 9)
32 32
33# increment this if the MAINTAINER_KEYS block is modified 33# increment this if the MAINTAINER_KEYS block is modified
34KEYRING_VERSION = (1,0) 34KEYRING_VERSION = (1,0)
@@ -109,6 +109,10 @@ group = init_optparse.add_option_group('Manifest options')
109group.add_option('-u', '--manifest-url', 109group.add_option('-u', '--manifest-url',
110 dest='manifest_url', 110 dest='manifest_url',
111 help='manifest repository location', metavar='URL') 111 help='manifest repository location', metavar='URL')
112group.add_option('-o', '--origin',
113 dest='manifest_origin',
114 help="use REMOTE instead of 'origin' to track upstream",
115 metavar='REMOTE')
112group.add_option('-b', '--manifest-branch', 116group.add_option('-b', '--manifest-branch',
113 dest='manifest_branch', 117 dest='manifest_branch',
114 help='manifest branch or revision', metavar='REVISION') 118 help='manifest branch or revision', metavar='REVISION')