Commit graph

136 commits

Author SHA1 Message Date
Matt Martz
4f43c4c09c Replaced tabbed indentation with spaces for subversion module 2015-07-01 09:39:19 -05:00
Brian Coca
2d3e93e558 added doc to note that git the command line tool is required for this moduel to function
fixes http://github.com/ansible/ansible/issues/11358
2015-06-27 00:36:55 -04:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
Brian Coca
74e40b5fe1 fixed doc issue with git 2015-06-10 12:42:15 -04:00
Brian Coca
118b00968c Merge pull request #783 from Gugli/fix-svn-has-local-mods-with-externals
Fix subversion module for repos with svn:externals files
2015-06-10 11:12:03 -04:00
Dionysis Grigoropoulos
a9e68692b7
git: Add option to verify GPG signature of commit 2015-06-09 01:51:40 +03:00
Gugli
bec0f06665 Add support for repos with svn:externals files
When a SVN repository has some svn:externals properties, files will be
reported with the X attribute, and lines will be added at the end to
list externals statuses with a text looking like
"Performing status on external item at ....".
Such lines were counted as a local modification by the regex, and the
module returned a change, even though they were none.

To have a clean (and parsable) "svn status" output, it is recommended
to use the --quiet option. The externals will only appear if they have
been modified. With this option on, it seems even safer to consider
there are local modifications when "svn status" outputs anything.
2015-02-13 15:06:15 +01:00
Toshio Kuratomi
be744ce5e7 Reverse the force parameter for the hg module 2015-01-29 18:27:35 -08:00
Toshio Kuratomi
256ce9dd4d Change the git force parameter to default to no as a safety change.
Fixes #306
2015-01-28 16:26:44 -08:00
Toshio Kuratomi
e2c1a0d2dd Make documentation list when force changed defaults 2015-01-28 16:25:56 -08:00
Toshio Kuratomi
6350e6a4cc Update force documentation to reflect default=no 2015-01-28 16:19:00 -08:00
Toshio Kuratomi
31a56e23f2 Merge pull request #506 from mscherer/fix_370
Fix #370
2015-01-28 16:03:40 -08:00
Toshio Kuratomi
4cf6725cab Merge pull request #93 from natefoo/hg-bugfix
Fix numerous bugs in the hg module
2015-01-07 16:37:58 -08:00
Toshio Kuratomi
8f6ae92cf8 git fetch --tags overwrites normal fetching with git < 1.8.x so do a normal fetch followed by using the refspec format for fetching tags 2014-12-22 15:08:25 -08:00
Toshio Kuratomi
8a03af6608 Fix typo in git refspec code. Change lists to tuples 2014-12-22 12:11:49 -08:00
Toshio Kuratomi
2cbe13a21d Merge pull request #371 from rohanpm/git_refspec
git: add 'refspec' argument
2014-12-22 11:31:12 -08:00
Toshio Kuratomi
ee324fc3ad Make documentation clear about update=no vs clone=no 2014-12-19 08:55:41 -08:00
Rohan McGovern
cf85047284 git: add 'refspec' argument
This argument may be used to fetch additional refs beyond the default
refs/heads/* and refs/tags/*.  Checking out GitHub pull requests or Gerrit
patch sets are two examples where this is useful.

Without this, specifying version=<sha1> with a SHA1 unreachable from any
tag or branch can't work.
2014-12-19 13:13:08 +10:00
Rohan McGovern
c242de1a39 git: clean up "fetch" method
De-duplicate repetitive code checking the exit code.

Include the stdout/stderr of the failed process in all cases.

Remove the returned values because no caller uses them.

Combine git commands where possible.  There is no need to fetch branches
and tags as two separate operations.
2014-12-19 13:13:08 +10:00
Toshio Kuratomi
dfe7f6c6d6 Probably would make clone a 1.9 feature rather than 1.8.3 2014-12-17 13:45:49 -08:00
Toshio Kuratomi
b650ad1671 Make git's update parameter revert to its old behaviour and add new clone parameter to take its place.
Fixes #426
Fixes https://github.com/ansible/ansible/issues/8630
2014-12-17 13:45:49 -08:00
Toshio Kuratomi
f87afc090c Merge pull request #158 from ajsalminen/git_dereference_annotated_tag
[git] Find the actual commit annotated tags refer to instead of the tag object.
2014-12-15 15:16:53 -08:00
Toshio Kuratomi
7af2d3f5f7 Merge pull request #92 from astorije/expand_user_git_key_file
Expand the user home folder in the key_file argument of the git module
2014-12-15 13:38:18 -08:00
Toshio Kuratomi
7350d2cc7f Add error message from git to message returned from ansible
Fixes #81
2014-12-15 13:34:03 -08:00
Michael Scherer
fa46f3c269 Fix #370, by allowing to export over a existing repository
This requires to use force=True
2014-12-13 22:07:41 +01:00
Michael Scherer
ccfdff4f00 Make force parameter work for export operation
The default is changed from 'yes' to 'no' to follow
subversion behavior (ie, requiring explicit confirmation
to erase a existing repository). Since that was not working before
cf #370 and since the option was ignored before and unused, this
should be safe to change.
2014-12-13 22:05:40 +01:00
Toshio Kuratomi
375025d2e3 Change git update param documentation to match reality 2014-12-09 09:02:05 -08:00
Toshio Kuratomi
2493dda4e5 Before pulling submodules from repos add ssh hostkeys for those submodules
Fixes #9655
2014-12-09 08:20:57 -08:00
Toshio Kuratomi
050a462b2a Fix git mod so that we switch to the desired version even if it was previously downloaded 2014-12-08 22:08:50 -08:00
Toshio Kuratomi
b326201a65 Some cleanups to the git module 2014-12-08 22:08:25 -08:00
Toshio Kuratomi
41559311d8 Fix cornercase tracebaxk when detecting whether submodules changed 2014-11-25 16:03:52 -08:00
Toshio Kuratomi
c46f39f044 Fix git module checking out correct version after initial clone
Fixes #313
2014-11-19 12:30:24 -08:00
Toshio Kuratomi
63e81cfc2e Fix git module handling of the recursive flag
Fixes: #169
2014-10-28 17:57:37 -04:00
Toshio Kuratomi
9fe5c2af2d Update desctiprion, parameter name, and default value as discussed in #55 2014-10-28 15:10:10 -04:00
Toshio Kuratomi
785762efe8 Merge pull request #55 from bibliotechy/add-track-submodule-branches-parameter
Add track submodule branches parameter
2014-10-28 15:03:57 -04:00
CptLausebaer
617eed6556 correct requirement of parameter dest
The parameter "dest:" is required, but it is documented as "required: false".
2014-10-21 18:51:13 +02:00
Antti Salminen
36b7287375 Find the actual commit annotated tags refer to instead of the tag object. 2014-10-07 22:00:20 +03:00
Nate Coraor
204a0dc131 Fix a few bugs and misbehavior in the hg module:
1. Don't pull when `dest` is already at the desired changeset.
2. Don't change the working copy when cleaning or pulling and a revision
   was specified.
3. Change the default for the `revision` param to match the behavior of
   hg.
2014-10-01 00:31:33 -04:00
Jérémie Astori
1e9680aa6b Fix #91: Expand user home folder for the key_file path of the git module 2014-09-30 23:04:54 -04:00
Chad Nelson
37ed9b19ef Chnge option name to track_submodule_branches.
Update documentation to reflect what the actual effect of the option.
2014-09-29 22:36:13 -04:00
Chad Nelson
30aae62e25 Give option on how git tracks submodules.
Allows user to decide if git submodule should track branches/tags or track commit hashes defined in the superproject.

Add track_branches parameter to the git module.

Defaults to track branches behavior.
2014-09-29 22:36:13 -04:00
Michael DeHaan
385a037cd6 package files 2014-09-26 11:05:47 -04:00
Michael DeHaan
c8e1a2077e file extensions! 2014-09-26 10:37:56 -04:00
Michael DeHaan
417309a626 Restructuring. 2014-09-26 10:13:26 -04:00
Michael DeHaan
73123b69fa Move modules into subdirectory. 2014-09-26 09:23:50 -04:00
James Cammarata
0257cb1201 Allow git repo queries without a clone when update=no
This commit also makes the dest parameter optional, unless update=yes
(the default), since it is not required for queries without an update.

Fixes #8630
2014-09-17 02:05:29 -05:00
Devin Austin
8c72247c1e updated git module documentation
Clarified key_file option for the git module, since it requires the user to specify a private key, not a public key.
2014-09-16 11:05:37 -06:00
Michael DeHaan
1194a4ee11 Documentation simplification for git module parameter 2014-07-11 08:44:29 -04:00
James Cammarata
9acf2454d4 Merge branch 'git_fix' of https://github.com/pkit/ansible into pkit-git_fix 2014-06-20 12:47:21 -05:00
James Cammarata
c76535d911 Cleanup subversion module documentation in regards to export 2014-05-27 16:20:10 -05:00