Commit Graph

122 Commits (e2abbbefd7d654f7ee05e18828fc1d0d1427a67b)

Author SHA1 Message Date
Toshio Kuratomi 4cf6725cab Merge pull request #93 from natefoo/hg-bugfix
Fix numerous bugs in the hg module
10 years ago
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 10 years ago
Toshio Kuratomi 8a03af6608 Fix typo in git refspec code. Change lists to tuples 10 years ago
Toshio Kuratomi 2cbe13a21d Merge pull request #371 from rohanpm/git_refspec
git: add 'refspec' argument
10 years ago
Toshio Kuratomi ee324fc3ad Make documentation clear about update=no vs clone=no 10 years ago
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.
10 years ago
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.
10 years ago
Toshio Kuratomi dfe7f6c6d6 Probably would make clone a 1.9 feature rather than 1.8.3 10 years ago
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
10 years ago
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.
10 years ago
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
10 years ago
Toshio Kuratomi 7350d2cc7f Add error message from git to message returned from ansible
Fixes #81
10 years ago
Toshio Kuratomi 375025d2e3 Change git update param documentation to match reality 10 years ago
Toshio Kuratomi 2493dda4e5 Before pulling submodules from repos add ssh hostkeys for those submodules
Fixes #9655
10 years ago
Toshio Kuratomi 050a462b2a Fix git mod so that we switch to the desired version even if it was previously downloaded 10 years ago
Toshio Kuratomi b326201a65 Some cleanups to the git module 10 years ago
Toshio Kuratomi 41559311d8 Fix cornercase tracebaxk when detecting whether submodules changed 10 years ago
Toshio Kuratomi c46f39f044 Fix git module checking out correct version after initial clone
Fixes #313
10 years ago
Toshio Kuratomi 63e81cfc2e Fix git module handling of the recursive flag
Fixes: #169
10 years ago
Toshio Kuratomi 9fe5c2af2d Update desctiprion, parameter name, and default value as discussed in #55 10 years ago
Toshio Kuratomi 785762efe8 Merge pull request #55 from bibliotechy/add-track-submodule-branches-parameter
Add track submodule branches parameter
10 years ago
CptLausebaer 617eed6556 correct requirement of parameter dest
The parameter "dest:" is required, but it is documented as "required: false".
10 years ago
Antti Salminen 36b7287375 Find the actual commit annotated tags refer to instead of the tag object. 10 years ago
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.
10 years ago
Jérémie Astori 1e9680aa6b Fix #91: Expand user home folder for the key_file path of the git module 10 years ago
Chad Nelson 37ed9b19ef Chnge option name to track_submodule_branches.
Update documentation to reflect what the actual effect of the option.
10 years ago
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.
10 years ago
Michael DeHaan 385a037cd6 package files 10 years ago
Michael DeHaan c8e1a2077e file extensions! 10 years ago
Michael DeHaan 417309a626 Restructuring. 10 years ago
Michael DeHaan 73123b69fa Move modules into subdirectory. 10 years ago
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
10 years ago
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.
10 years ago
Michael DeHaan 1194a4ee11 Documentation simplification for git module parameter 10 years ago
James Cammarata 9acf2454d4 Merge branch 'git_fix' of https://github.com/pkit/ansible into pkit-git_fix 10 years ago
James Cammarata c76535d911 Cleanup subversion module documentation in regards to export 10 years ago
James Cammarata b4911dcc59 Make sure export param for subversion module is checked as a boolean
Fixes #7548
10 years ago
Aleksey Khudyakov ac6792356c Fix typo requird -> required 10 years ago
James Cammarata 31250905e9 Check module_path permissions when creating ssh_wrapper for git
If the module directory is not writable/executable to the current user
(most likely because of a sudo to a non-root user), the ssh_wrapper
will be created in the default location for mkstemp() calls. To facilitate
the deletion of these new files, a new mechanism for cleaning up files
created by the module was also added.

Fixes #7375
11 years ago
Chad Nelson 6aac9538a8 Only update submodules when recursive is true 11 years ago
Constantine Peresypkin 1c6c7716fd fix issue #6932
add `git remote set-url` before fetch to set the remote repo to the new url, if provided
11 years ago
James Cammarata 973b29e624 Fix incorrect version_added value in docstring for subversion export param 11 years ago
James Tanner b65857b4de Addresses #6750 Use --help instead of - 11 years ago
James Tanner a2307bf2fc Fixes #6750 Check git subcommand for --remote and expose errors 11 years ago
Gael Pasgrimaud 9ca9f270d9 Fix a typo in the subversion module documentation 11 years ago
Oleg A. Mamontov 045eba960e Fixed cwd for submodules update 11 years ago
Michael DeHaan 12391a4ba9 Merge branch 'intellectronica/non-recursive-git' of git://github.com/intellectronica/ansible into devel
Conflicts:
	library/source_control/git
11 years ago
addshore 68f12aa995 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.
11 years ago
James Cammarata 98c62f6b1c Merge branch 'subversion_export' of https://github.com/maniaplanet/ansible into maniaplanet-subversion_export 11 years ago
James Tanner 69d40b861f Fixes #6582 Re-add regex to ignore untracked files that were never tracked 11 years ago