Commit Graph

27 Commits (d1bb1220d53eb1615e552c5dbb15ce2eaef05c13)

Author SHA1 Message Date
James Tanner 1a9a6da4f7 fix docstring indentation on scc modules 11 years ago
Skylar Saveland d7e5fcf30f add executable option to subversion module 11 years ago
Skylar Saveland bb4619e716 add executable option to hg, refactor in doing so 11 years ago
Skylar Saveland 3f74c2d986 add executable option to bzr module, refactor in doing so 11 years ago
Skylar Saveland 198c4702bd executable option to git module 11 years ago
Steve Fox cf0ffda163 Elaborate on capabilities of subversion module 11 years ago
James Cammarata 102833cca6 Merge branch 'gitfix' of https://github.com/johanwiren/ansible into johanwiren-gitfix 11 years ago
Johan Wirén 3ac5f2d409 Fixed so that we no longer check with the remote if a checkout already is at the desired sha version. 11 years ago
Stephen Fromm 544bcfb30d Apply consistent parameter alises to hg and subversion
For issue #3372, apply consistent parameter aliases to source_control
modules.  For hg, add name and version and add to documentation string.
For subversion, add version and document version and name aliases in
documentation string.
11 years ago
Drew Blas d912de2dff Added git disclaimer about dealing with ssh host checking
This disclaimer already exists in library/source_control/hg but not here.  It affects both and was discussed awhile back on: https://groups.google.com/forum/#!msg/ansible-project/q9G9xIdsRxo/XJhQzuS-qSoJ  However no PR was ever sent to fix the doc.
11 years ago
Michael DeHaan ac5fb3ffda Merge pull request #3744 from jimi1283/issue_3360
Allow destination paths in the hg module to include a tilde (~)
11 years ago
James Cammarata e5822b5342 Allow destination paths in the hg module to include a tilde (~)
Fixes issue #3360 - Inconsistent behavior of the hg module w.r.t. dest path
11 years ago
Petr Svoboda cbbd9c257d Tidy up fix of git module traceback 11 years ago
Petr Svoboda 85396cbd26 Fix traceback in git module when version checkout fails
"UnboundLocalError: local variable 'branch' referenced before assignment" is
raised in git, line 282, in switch_version.

Exception is raised when version is not branch and version checkout fails.
E.g. when version is nonexistant commit.
11 years ago
Michael DeHaan 10ac8ba3de Don't add --version HEAD parameter is already HEAD, some versions of git don't like this. 11 years ago
James Laska cf563c6838 Resolve incompatability between depth and version
Git is unable to checkout the specified `version` when the repository is
cloned with a reduced history (`depth`).  However, if the repository is
already cloned, subsequent git module calls will update the repository
(default update=True), then properly checkout the specified `version`.
To allow the initial call to properly clone the specified `version`, at
the specified `depth`, this patch adds the `--branch` parameter when
cloning the repository.
11 years ago
Michael DeHaan 2a1a68a672 Merge pull request #3432 from jlund/hg-spelling
Fix some minor spelling mistakes in the hg module documentation
12 years ago
Matt Spaulding 3e631c1129 Fix git submodule update when version specified 12 years ago
Joshua Lund bcfdc4c534 Fix some minor spelling mistakes in the hg module documentation 12 years ago
Stephen Fromm ddee9187f0 Add submodule support to git module
This does two things:
* add --recursive option to git clone command in clone().  This will
  initialize all submodules when cloning a remote repository.
* Add submodule_update() and call that from fetch().  submodule_update()
  calls two git commands iff the file .gitmodules exists in the
  repository:
  * 'git submodule sync' - synchronizes the submodules' remote URL
    configuration setting to the value in .gitmodules.
  * 'git submodule update --init --recursive' - initialize and update
    registered submodules to the commit specified in the index of the
    containing repository.

If a repository was cloned without --recursive, submodule_update() will
ensure that the submodules are initialized and updated.
12 years ago
Jan-Piet Mens 3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
12 years ago
Michael DeHaan 9c59057c1f Docs standardization 12 years ago
Benjamin Schwarze 3f95f15bb4 remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong) 12 years ago
Benjamin Schwarze 9d296924de use module.get_bin_path('git', True) once and pass git_path to functions 12 years ago
Stoned Elipot a7c5e6246e Fix typo in git module documentation preventing it to be processed by ansible-doc 12 years ago
Jesse Keating 20943b0410 Add an update option to the git module
This will allow just making sure the repo exists w/out actually making
any chnages to it. Useful if you're going to run a play repeatedly
against a host that might have active development going on in the
repository (think initial bootstrap of a developers system, and
continued playbook runs to work on other projects).
12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago