mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Sync help text in repo from init.py
Change Ia6032865f9296b29524c2c25b72bd8e175b30489 improved the help text for the init command, but the same improvement was not made in repo. Change-Id: Idc34e479b5237137b90e8b040824776e4f7883b0
This commit is contained in:
parent
33949c34d2
commit
3794a78b80
5
repo
5
repo
@ -154,7 +154,8 @@ group.add_option('-m', '--manifest-name',
|
|||||||
help='initial manifest file', metavar='NAME.xml')
|
help='initial manifest file', metavar='NAME.xml')
|
||||||
group.add_option('--mirror',
|
group.add_option('--mirror',
|
||||||
dest='mirror', action='store_true',
|
dest='mirror', action='store_true',
|
||||||
help='mirror the forrest')
|
help='create a replica of the remote repositories '
|
||||||
|
'rather than a client working directory')
|
||||||
group.add_option('--reference',
|
group.add_option('--reference',
|
||||||
dest='reference',
|
dest='reference',
|
||||||
help='location of mirror directory', metavar='DIR')
|
help='location of mirror directory', metavar='DIR')
|
||||||
@ -225,7 +226,7 @@ def _Init(args):
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
print('fatal: cannot make %s directory: %s'
|
print('fatal: cannot make %s directory: %s'
|
||||||
% (repodir, e.strerror), file=sys.stderr)
|
% (repodir, e.strerror), file=sys.stderr)
|
||||||
# Don't faise CloneFailure; that would delete the
|
# Don't raise CloneFailure; that would delete the
|
||||||
# name. Instead exit immediately.
|
# name. Instead exit immediately.
|
||||||
#
|
#
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user