diff options
author | Shawn O. Pearce <sop@google.com> | 2009-07-03 17:24:17 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-07-03 20:50:52 -0700 |
commit | 5f947bba69de81f58f1adef10225c04727fa0ed5 (patch) | |
tree | 96da97d3e570c4b2238c807700060c144b333d09 /repo | |
parent | b3d2c9214be60f575d64b3af3b87a3632de04ba0 (diff) | |
download | git-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-x | repo | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -28,7 +28,7 @@ if __name__ == '__main__': | |||
28 | del magic | 28 | del 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 |
31 | VERSION = (1, 8) | 31 | VERSION = (1, 9) |
32 | 32 | ||
33 | # increment this if the MAINTAINER_KEYS block is modified | 33 | # increment this if the MAINTAINER_KEYS block is modified |
34 | KEYRING_VERSION = (1,0) | 34 | KEYRING_VERSION = (1,0) |
@@ -109,6 +109,10 @@ group = init_optparse.add_option_group('Manifest options') | |||
109 | group.add_option('-u', '--manifest-url', | 109 | group.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') |
112 | group.add_option('-o', '--origin', | ||
113 | dest='manifest_origin', | ||
114 | help="use REMOTE instead of 'origin' to track upstream", | ||
115 | metavar='REMOTE') | ||
112 | group.add_option('-b', '--manifest-branch', | 116 | group.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') |