Fixes #12309
This commit is contained in:
parent
7fbaf3aa4a
commit
bf2d1832aa
1 changed files with 11 additions and 0 deletions
|
@ -140,6 +140,11 @@ def main(args):
|
||||||
help='adds the hostkey for the repo url if not already added')
|
help='adds the hostkey for the repo url if not already added')
|
||||||
parser.add_option('--key-file', dest='key_file',
|
parser.add_option('--key-file', dest='key_file',
|
||||||
help="Pass '-i <key_file>' to the SSH arguments used by git.")
|
help="Pass '-i <key_file>' to the SSH arguments used by git.")
|
||||||
|
parser.add_option('--git-force', dest='gitforce', default=False, action='store_true',
|
||||||
|
help='modified files in the working git repository will be discarded')
|
||||||
|
parser.add_option('--track-submodules', dest='tracksubmodules', default=False, action='store_true',
|
||||||
|
help='submodules will track the latest commit on their master branch (or other branch specified in .gitmodules).'
|
||||||
|
' This is equivalent to specifying the --remote flag to git submodule update')
|
||||||
options, args = parser.parse_args(args)
|
options, args = parser.parse_args(args)
|
||||||
|
|
||||||
hostname = socket.getfqdn()
|
hostname = socket.getfqdn()
|
||||||
|
@ -182,6 +187,12 @@ def main(args):
|
||||||
if options.key_file:
|
if options.key_file:
|
||||||
repo_opts += ' key_file=%s' % options.key_file
|
repo_opts += ' key_file=%s' % options.key_file
|
||||||
|
|
||||||
|
if options.gitforce:
|
||||||
|
repo_opts += ' force=yes'
|
||||||
|
|
||||||
|
if options.tracksubmodules:
|
||||||
|
repo_opts += ' track_submodules=yes'
|
||||||
|
|
||||||
path = utils.plugins.module_finder.find_plugin(options.module_name)
|
path = utils.plugins.module_finder.find_plugin(options.module_name)
|
||||||
if path is None:
|
if path is None:
|
||||||
sys.stderr.write("module '%s' not found.\n" % options.module_name)
|
sys.stderr.write("module '%s' not found.\n" % options.module_name)
|
||||||
|
|
Loading…
Reference in a new issue