1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

80 commits

Author SHA1 Message Date
James Tanner
1c9950678a Addresses #6750 Use --help instead of - 2014-04-03 15:26:48 -04:00
James Tanner
cca028187e Fixes #6750 Check git subcommand for --remote and expose errors 2014-04-03 15:21:54 -04:00
Gael Pasgrimaud
1fc4b89e64 Fix a typo in the subversion module documentation 2014-04-03 14:34:43 +02:00
Oleg A. Mamontov
933fb349f1 Fixed cwd for submodules update 2014-04-02 13:21:26 +04:00
Michael DeHaan
c308b98742 Merge branch 'intellectronica/non-recursive-git' of git://github.com/intellectronica/ansible into devel
Conflicts:
	library/source_control/git
2014-03-28 17:49:02 -04:00
addshore
11895fa437 Add --remote to git submodule_update
This simply adds --remote to the git submodule update command.
This means that if a branch is defined in .gitmodules then we should track said branch when updating.
2014-03-28 13:01:39 -04:00
James Cammarata
19c92b3a42 Merge branch 'subversion_export' of https://github.com/maniaplanet/ansible into maniaplanet-subversion_export 2014-03-25 21:25:50 -05:00
James Tanner
5f428041db Fixes #6582 Re-add regex to ignore untracked files that were never tracked 2014-03-19 15:42:40 -04:00
James Tanner
67517e96d3 Fixes #6567 put the git wrapper script in the module temp dir 2014-03-19 10:30:10 -04:00
andreaskern
a57581e1e7 add param to note example for ssh-keyscan
hostnames in the known hosts file are typically stored as Hashed values, calling 'ssh-keyscan' with '-H' changes to output to the Hashed format so that the known_hosts file looks more consistent
2014-03-18 17:24:56 +01:00
patrickheeney
fae36165a2 Fix documentation for accept_hostkey 2014-03-13 07:58:12 -07:00
Michael DeHaan
c193604f60 Some more run_command updates. 2014-03-12 17:04:34 -04:00
Patrick Smith
4173608b58 git: Execute git commands in dest directory 2014-03-12 13:28:39 -04:00
James Cammarata
d8a81c488e Remove validate_certs parameter from fetch_url calls 2014-03-12 10:31:01 -05:00
James Tanner
ba0fec4f42 Force command action to not be executed by the shell unless specifically enabled 2014-03-10 16:13:30 -05:00
James Cammarata
9730157525 Validate SSL certs accessed through urllib*
* Adds another module utility file which generalizes the
  access of urls via the urllib* libraries.
* Adds a new spec generator for common arguments.
* Makes the user-agent string configurable.

Fixes #6211
2014-03-10 16:06:52 -05:00
Chris Church
5c2c29e71f Pass svn arguments as a list of strings instead of using string substition to ensure all parameters are escaped properly. 2014-02-26 22:23:26 -05:00
James Cammarata
03cb2f5ffa Merge branch 'git_version_tags' of https://github.com/j2sol/ansible into j2sol-git_version_tags 2014-02-25 13:05:29 -06:00
James Cammarata
daa3253b52 Merge branch 'devel' of https://github.com/calebbrown/ansible into calebbrown-devel 2014-02-17 15:38:56 -06:00
Baptiste Lafontaine
22468e9455 Adding example for svn export 2014-02-10 15:04:17 +01:00
Jesse Keating
4593e3c357 Make sure requested version tag gets downloaded
There is a subtle bug in how the git module currently works. If the
version you request is a tag name, and you've already got the repo
cloned, and the tag name is a new tag, but refers to the already checked
out working copy, the git module would exit early without change. This
is bad as it means the new tag ref was not fetched and could not be used
in later tasks.

This change will check if the version is a remote tag, and if the tag
doesn't exist locally. If that is true, it'll do a fetch.

The activity could still be seen as not a change, because the working
copy won't be updated, if the new tag refers to the already checked out
copy, but that's not different than before and can be fixed as a more
comprehensive overhaul of tracking change in the git module.
2014-02-07 14:13:04 -08:00
Michael Porter
8ccbf13a13 (#5822) Use mkstemp to open a temporary file (as NamedTemporaryFile doesn't take a delete argument in Python < 2.6) 2014-01-30 19:39:39 -05:00
James Tanner
3ec043ec17 Fixes #5750 Fail on missing ~/.ssh and ignore accept_hostkey if stricthoskeychecking is off 2014-01-28 11:49:35 -05:00
James Tanner
86ba8f4dff Fix git module parameters to conform to code standards 2014-01-23 16:44:17 -05:00
James Tanner
18050d50ec Fixes #4108 Add sshopts and keyfile parameters to the git module 2014-01-23 16:22:43 -05:00
Caleb Brown
19f7db3065 Fix a bug in "hg" module so that pull is not set to a version.
There is a bug in the `hg` module where if a `tag` is used it won't
properly be able to update to it.

This problem is exhibited on repository where a tag is moved from an
older commit to a newer commit.
2014-01-23 15:56:36 +11:00
René Moser
0f2bc0dad8 subversion: use LANG=C to prevent regex failures
Fixes bug GH-5549.
2014-01-15 10:05:31 +01:00
jctanner
2e1d92c2ec Merge pull request #5141 from kisielk/hg
hg module: Don't modify hgrc when running purge
2014-01-14 10:24:37 -08:00
James Tanner
eeee1e1c5a Set accept_hostkey to False by default in the git module and fail
early if the key is unknown
2014-01-11 11:02:01 -05:00
James Tanner
8665b0638a Add an "accept_hostkey" parameter to the git module to help automatically
accept hostkeys for git repos and prevent task hangs when the key is unknown
2014-01-11 10:36:45 -05:00
Baptiste Lafontaine
bc14ced48d Adding 'export' option to subversion module (to export instead of checkout) 2013-12-13 09:51:55 +01:00
Kamil Kisiel
2300902784 Don't modify hgrc when running purge 2013-12-02 23:50:33 -08:00
James Tanner
6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
Tom Berger
79f3c56ddd Add a recursive option to the git command.
Make it possible to clone without submodules by setting
recursive to no. Default is yes, so no change is needed
in existing plays.
2013-12-02 09:41:07 -05:00
James Tanner
5c1fbcc9d2 Addresses #5036 fix typo in git module 2013-11-25 09:55:05 -05:00
James Tanner
d950a3d1b5 Fixes 5036 add missing parameter to git module function call 2013-11-25 09:51:07 -05:00
Michael DeHaan
2726b13245 Changelog updates and a few module renames. vpc -> ec2_vpc, githooks -> github_hooks, blacklist -> kernel_blacklist. These are all new in 1.4 so safe to change. 2013-11-18 18:28:21 -05:00
James Tanner
dfe6c5d434 Fix copyright section in githooks module 2013-11-14 14:49:10 -05:00
jctanner
ad5012f930 Merge pull request #4691 from cg-soft/git-bare-ref-repo-support
Add support for bare git reference repos
2013-11-14 10:39:57 -08:00
James Tanner
303e996035 Quote docstring in githooks module 2013-11-14 13:20:17 -05:00
jctanner
ce20cf8488 Merge pull request #4731 from pcgentry/devel
new githooks module
2013-11-14 10:17:39 -08:00
Michael DeHaan
337b6ce642 Fix documentation formatting. 2013-10-31 20:00:11 -04:00
Michael DeHaan
6d16f85b30 Suggest keyscan for github/other SCM hanging. 2013-10-31 18:00:24 -04:00
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.
2013-10-31 10:56:14 -07:00
Phillip
824d5688fc adding the githooks module 2013-10-30 09:03:11 -05:00
Yap Sok Ann
8519d586ba git: Don't add --branch while cloning if the version is a SHA-1 hash. 2013-10-16 20:37:07 +08:00
Yap Sok Ann
9f8cdac0aa git: Handle network problem when running git ls-remote. 2013-10-16 20:37:07 +08:00
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.
2013-10-16 20:37:07 +08:00
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.
2013-10-16 20:37:07 +08:00
Yap Sok Ann
2ad4d77c9a git: Remove unnecessary return code checking.
The functions either return rc=0 or call fail_json themselves.
2013-10-16 20:37:06 +08:00