Commit Graph

89 Commits (e7c0b95074f5248dd7f0d7f8f6e8df649945766e)

Author SHA1 Message Date
Michael DeHaan 337b6ce642 Fix documentation formatting. 11 years ago
Michael DeHaan 6d16f85b30 Suggest keyscan for github/other SCM hanging. 11 years ago
Christian Goetze f41d4ac390 Add support for bare git reference repos
This adds two parameters to the git module:

  bare (boolean)
    Indicates this is to be a bare repositori

  reference (string)
    Indicates the path or url to the reference repo.
    Check out the "--reference" option in the "git clone"
    man page

Added appropriate tests.
11 years ago
Phillip 824d5688fc adding the githooks module 11 years ago
Yap Sok Ann 8519d586ba git: Don't add --branch while cloning if the version is a SHA-1 hash. 11 years ago
Yap Sok Ann 9f8cdac0aa git: Handle network problem when running `git ls-remote`. 11 years ago
Yap Sok Ann a53e7045a6 git: Always return the before/after revisions, even in check mode.
The return values from check mode and non-check mode should match in all cases,
except when a SHA-1 hash is used as version, as there is no way to check if it
is a valid hash using `git ls-remote`.

Also, to accomodate this change, the force flag for the reset function has been
removed so that we can do the checking in main.
11 years ago
Yap Sok Ann b9558828e8 git: Make function get_remote_head usable when cloning.
This allows the module to return the before/after revisions in all cases.
11 years ago
Yap Sok Ann 2ad4d77c9a git: Remove unnecessary return code checking.
The functions either return rc=0 or call fail_json themselves.
11 years ago
Yap Sok Ann 9af05f4d2f git: Full length SHA-1 in, full length SHA-1 out.
This removes ambiguity at the expense of slight backward incompatibility.
11 years ago
Mads Weitling ce799b9e0e Fix Hg.__init__(...) reading value from self.hg_path 11 years ago
Mads Weitling 740a33bcab Fix 'hg module fails with: AttributeError: 'AnsibleModule' object has no attribute 'parames'' 11 years ago
James Tanner b98ab745f1 fix docstring indentation on scc modules 11 years ago
Skylar Saveland b339485da8 add executable option to subversion module 11 years ago
Skylar Saveland d8c61528db add executable option to hg, refactor in doing so 11 years ago
Skylar Saveland c4947ebc7d add executable option to bzr module, refactor in doing so 11 years ago
Skylar Saveland 5243bd5fa3 executable option to git module 11 years ago
Steve Fox bd48251b34 Elaborate on capabilities of subversion module 11 years ago
James Cammarata 7bd8c18fa7 Merge branch 'gitfix' of https://github.com/johanwiren/ansible into johanwiren-gitfix 11 years ago
Johan Wirén dcd556b92f 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 cc58403e48 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 9ede377380 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 b31cef48e9 Merge pull request #3744 from jimi1283/issue_3360
Allow destination paths in the hg module to include a tilde (~)
11 years ago
James Cammarata 7d521ee22c 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 d9576b3529 Tidy up fix of git module traceback 11 years ago
Petr Svoboda 2d5b942ffe 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 32d5038d72 Don't add --version HEAD parameter is already HEAD, some versions of git don't like this. 11 years ago
James Laska 95a22338a2 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 0fd7864482 Merge pull request #3432 from jlund/hg-spelling
Fix some minor spelling mistakes in the hg module documentation
11 years ago
Matt Spaulding 871f781ec7 Fix git submodule update when version specified 11 years ago
Joshua Lund caf394c8f6 Fix some minor spelling mistakes in the hg module documentation 11 years ago
Stephen Fromm 76d848331f 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.
11 years ago
Jan-Piet Mens 5c69918d53 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
11 years ago
Michael DeHaan 6ae9804738 Docs standardization 11 years ago
Benjamin Schwarze a0c89e742e remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong) 11 years ago
Benjamin Schwarze 3cae9d6d0d use module.get_bin_path('git', True) once and pass git_path to functions 11 years ago
Stoned Elipot c9f268ac48 Fix typo in git module documentation preventing it to be processed by ansible-doc 11 years ago
Jesse Keating f645d27f5e 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).
11 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 11 years ago