Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
bf2d1832
Commit
bf2d1832
authored
Sep 30, 2015
by
w1r0x
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #12309
parent
7fbaf3aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
bin/ansible-pull
+11
-0
No files found.
bin/ansible-pull
View file @
bf2d1832
...
...
@@ -140,6 +140,11 @@ def main(args):
help
=
'adds the hostkey for the repo url if not already added'
)
parser
.
add_option
(
'--key-file'
,
dest
=
'key_file'
,
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
)
hostname
=
socket
.
getfqdn
()
...
...
@@ -182,6 +187,12 @@ def main(args):
if
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
)
if
path
is
None
:
sys
.
stderr
.
write
(
"module '
%
s' not found.
\n
"
%
options
.
module_name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment