Ashley Penney [Thu, 3 Apr 2014 17:57:48 +0000 (13:57 -0400)]
Merge pull request #121 from fkrull/master
Only add ssh options to commands that actually talk to the network.
Ashley Penney [Thu, 3 Apr 2014 16:17:41 +0000 (12:17 -0400)]
Merge pull request #131 from igalic/fix-tabbing
fix tabbing in vcsrepo test
Igor Galić [Thu, 3 Apr 2014 12:28:33 +0000 (14:28 +0200)]
fix tabbing in vcsrepo test
Hunter Haugen [Wed, 2 Apr 2014 22:52:51 +0000 (15:52 -0700)]
Merge pull request #130 from Phil0xF7/add_beaker-rspec_tests
add beaker-rspec support
Phil Pham [Fri, 14 Feb 2014 19:16:15 +0000 (11:16 -0800)]
add beaker-rspec support
This adds support for beaker-rspec as well as basic test coverage for git
Aaron Stone [Mon, 31 Mar 2014 18:10:43 +0000 (11:10 -0700)]
Merge pull request #108 from sodabrew/bzr_set_ownership
Call set_ownership from the bzr provider
Aaron Stone [Tue, 3 Dec 2013 07:30:51 +0000 (01:30 -0600)]
Call set_ownership from the bzr provider
Felix Krull [Fri, 14 Feb 2014 21:12:42 +0000 (22:12 +0100)]
Only add ssh options to commands that actually talk to the network.
At least in Mercurial 2.8.2, --ssh seems to be a command-specific parameter in
contrast to a global one. As a result, local commands error when seeing a --ssh
parameter. This change passes --ssh only for commands that actually talk to the
network ('incoming', 'pull' and 'clone' here).
Ashley Penney [Fri, 24 Jan 2014 13:52:13 +0000 (05:52 -0800)]
Merge pull request #105 from mcanevet/no_su
Don't 'su' if passed user is current user
Aaron Stone [Tue, 14 Jan 2014 19:03:45 +0000 (11:03 -0800)]
Merge pull request #117 from jonoterc/fix_svnlook
fix svnlook behavior with plain directories
jonoterc [Tue, 14 Jan 2014 17:31:26 +0000 (12:31 -0500)]
fix svnlook behavior with plain directories
svnlook expects a sub-directory within a repository called "format"; when using svnlook
within a non-repository directory this causes it to throw an error. Adding a test for
that directory before executing svnlook.
Ashley Penney [Sat, 11 Jan 2014 18:12:50 +0000 (10:12 -0800)]
Merge pull request #115 from instruct-br/use_remote_name_when_cloning_a_repo
git: actually use the remote parameter
Miguel Di Ciurcio Filho [Sat, 11 Jan 2014 17:25:28 +0000 (15:25 -0200)]
git: actually use the remote parameter
When using the following sample, the provider does not use the value of remote
when cloning a repository:
vcsrepo {'/path/to/repo':
ensure => 'present',
provider => 'git',
remote => 'test',
source => 'git@somerepo:repo.git',
}
$ git remote
origin
This commit makes sure that the new repository has a remote with the
supplied value.
Closes #MODULES-430
Aaron Stone [Tue, 7 Jan 2014 19:17:49 +0000 (11:17 -0800)]
Merge pull request #114 from freyes/add-git-shallow-clone
Add the option to shallow clones with git
Felipe Reyes [Thu, 2 Jan 2014 21:13:40 +0000 (18:13 -0300)]
Add the option to shallow clones with git
The new parameter used to indicate that you want a shallow clone is `:depth`
Aaron Stone [Tue, 7 Jan 2014 18:35:17 +0000 (10:35 -0800)]
Temporary workaround for broken Rubygems on Travis
Aaron Stone [Thu, 5 Dec 2013 05:05:03 +0000 (21:05 -0800)]
Merge pull request #109 from mikegerwitz/master
Bug fix: Git provider on_branch? retains trailing newline
Mike Gerwitz [Tue, 3 Dec 2013 14:54:21 +0000 (09:54 -0500)]
Stripping git on_branch? return value; contains trailing newline
This commit also contains git provider `latest' method formatting changes;
squashed by request.
Ashley Penney [Mon, 2 Dec 2013 17:30:42 +0000 (09:30 -0800)]
Merge pull request #106 from mikegerwitz/master
Correctly handle detached head for 'latest' on latest Git versions
Mike Gerwitz [Mon, 2 Dec 2013 16:38:56 +0000 (11:38 -0500)]
Using rev-parse to determine branch name of HEAD for on_branch? method
Mike Gerwitz [Mon, 2 Dec 2013 16:24:15 +0000 (11:24 -0500)]
origin/HEAD is not valid; use origin/master for latest when branch == 'master'
Mickaẽl Canévet [Sun, 24 Nov 2013 09:44:37 +0000 (10:44 +0100)]
Don't 'su' if passed user is current user
Ashley Penney [Wed, 13 Nov 2013 17:58:06 +0000 (09:58 -0800)]
Merge pull request #102 from apenney/020-release
Prepare 0.2.0 release.
Ashley Penney [Wed, 13 Nov 2013 17:44:24 +0000 (12:44 -0500)]
Prepare 0.2.0 release.
Ashley Penney [Fri, 8 Nov 2013 17:55:58 +0000 (09:55 -0800)]
Merge pull request #98 from reidmv/autorequire_git
Add autorequire for Package['git']
Reid Vandewiele [Mon, 21 Oct 2013 05:19:34 +0000 (22:19 -0700)]
Add autorequire for Package['git']
If the git package is being managed, it stands to reason that the git
package should be installed before trying to potentially manage git
repositories using vcsrepo resources.
This commit adds an autorequire to the vcsrepo type that reflects the
above premise.
Aaron Stone [Tue, 8 Oct 2013 22:38:28 +0000 (15:38 -0700)]
Merge pull request #96 from apenney/metadata
Add a blank dependencies section and stringify versions.
Ashley Penney [Tue, 8 Oct 2013 22:21:14 +0000 (15:21 -0700)]
Add a blank dependencies section and stringify versions.
Ashley Penney [Mon, 7 Oct 2013 20:20:47 +0000 (13:20 -0700)]
FM-103: Add metadata.json to all modules.
Ashley Penney [Mon, 7 Oct 2013 20:18:57 +0000 (13:18 -0700)]
Merge pull request #95 from apenney/metadata
FM-103: Add metadata.json to all modules.
Aaron Stone [Tue, 1 Oct 2013 18:37:13 +0000 (11:37 -0700)]
Merge pull request #93 from apenney/coverage
Move from rspec1 to rspec2
Ashley Penney [Tue, 1 Oct 2013 16:51:13 +0000 (12:51 -0400)]
Modifications to .travis.yml to test appropriately.
Ashley Penney [Wed, 18 Sep 2013 22:48:47 +0000 (18:48 -0400)]
Add convert_working_copy_to_bear and convert_bare_to_working_copy tests.
Ashley Penney [Wed, 18 Sep 2013 22:20:29 +0000 (18:20 -0400)]
Add tests for convert_working_copy_to_bare and
convert_bare_to_working_copy
Ashley Penney [Wed, 18 Sep 2013 22:16:39 +0000 (18:16 -0400)]
Add latest tests.
Ashley Penney [Wed, 18 Sep 2013 22:01:13 +0000 (18:01 -0400)]
Add test for latest?
Also add some fixtures for previous tests.
Ashley Penney [Wed, 18 Sep 2013 19:59:44 +0000 (15:59 -0400)]
Overhaul the spec tests to work in rspec2.
This work gets rid of the provider_example_group and reworks everything
to work properly against rspec2. I don't know if I'd consider the style
"better" but it works.
Aaron Stone [Wed, 4 Sep 2013 18:15:02 +0000 (11:15 -0700)]
Merge pull request #91 from jiacona/master
update git provider to handle checking out into an existing (empty) dir
Aaron Stone [Wed, 4 Sep 2013 18:14:06 +0000 (11:14 -0700)]
Merge pull request #92 from markleightonfisher/dev-README.CVS.markdown
Documented the "module" attribute.
Mark Leighton Fisher [Wed, 4 Sep 2013 14:24:38 +0000 (10:24 -0400)]
Documented the "module" attribute.
John Iacona [Wed, 28 Aug 2013 20:34:57 +0000 (16:34 -0400)]
change path_empty? to not do full directory listing
John Iacona [Wed, 28 Aug 2013 18:32:05 +0000 (14:32 -0400)]
update git provider to handle checking out into an existing (empty) dir
Aaron Stone [Tue, 13 Aug 2013 05:15:23 +0000 (22:15 -0700)]
Merge pull request #89 from razorsedge/svn_revision
SVN provider should check for '^Revision:' and not '^Last Changed Rev:'
Michael Arnold [Mon, 12 Aug 2013 22:34:06 +0000 (15:34 -0700)]
And fix the rspec test to pass.
Michael Arnold [Mon, 12 Aug 2013 21:53:27 +0000 (14:53 -0700)]
Fix svn provider to look for '^Revision:'.
SVN provider should check for '^Revision:' and not '^Last Changed
Rev:'. Addresses GitHub Issue #43.
Hunter Haugen [Tue, 30 Jul 2013 16:51:37 +0000 (09:51 -0700)]
Merge pull request #84 from sodabrew/issue_12034_svnswitch
added support for changing upstream repo url - rebase of #74
Aaron Stone [Thu, 25 Jul 2013 16:24:51 +0000 (09:24 -0700)]
Handle revision update without source switch.
Aaron Stone [Thu, 25 Jul 2013 04:55:04 +0000 (21:55 -0700)]
Update specs for svn switch
Matthew Slowe [Tue, 2 Jul 2013 14:59:12 +0000 (15:59 +0100)]
added support for changing upstream repo url
added checks that the URL of the WC matches the URL from the manifest
changed from using "update" to "switch"
Aaron Stone [Thu, 25 Jul 2013 20:49:27 +0000 (13:49 -0700)]
Merge pull request #85 from sodabrew/travis_puppet_version
Try to get Travis to respect the three different puppet versions
Aaron Stone [Thu, 25 Jul 2013 16:30:06 +0000 (09:30 -0700)]
Travis should run three Puppet versions in a matrix with three Ruby versions, but limit Puppet 2.6.x to Ruby 1.8.7.
Aaron Stone [Thu, 25 Jul 2013 19:57:21 +0000 (12:57 -0700)]
Merge pull request #86 from sodabrew/puppet_util_withenv
Correct use of withenv
Aaron Stone [Thu, 25 Jul 2013 19:09:51 +0000 (12:09 -0700)]
The location of Puppet::Util[::Execution].withenv changed from Puppet 2.x to 3.x
Aaron Stone [Fri, 19 Jul 2013 18:52:12 +0000 (11:52 -0700)]
Style adjustment
Aaron Stone [Fri, 19 Jul 2013 19:50:48 +0000 (12:50 -0700)]
Merge pull request #83 from sodabrew/issue_8331_svnlook
Add support for master svn repositories
Aaron Stone [Fri, 19 Jul 2013 19:35:23 +0000 (12:35 -0700)]
Style and comments
5Ub-Z3r0 [Wed, 10 Oct 2012 14:38:03 +0000 (17:38 +0300)]
Add support for master svn repositories
Pull request related to issue #8331.
I have added support into the exists? method (actually working_copy_exists?) for checking if the path is a master repository, using svnlook. It should be ok in most cases, since svnlook comes with svnadmin in nearly every distribution.
Aaron Stone [Fri, 19 Jul 2013 18:28:24 +0000 (11:28 -0700)]
Whitespace
Aaron Stone [Fri, 19 Jul 2013 18:15:37 +0000 (11:15 -0700)]
Whitespace
Aaron Stone [Fri, 19 Jul 2013 18:10:29 +0000 (11:10 -0700)]
Merge pull request #82 from webfactory/issue-10791
Allow for setting the CVS_RSH environment variable
Matthias Pigulla [Sat, 12 Nov 2011 16:53:26 +0000 (17:53 +0100)]
Allow for setting the CVS_RSH environment variable
Aaron Stone [Thu, 18 Jul 2013 04:26:50 +0000 (21:26 -0700)]
Merge pull request #81 from sepulworld/svn-configurtation-parameter
Adding svn configuration parameter, and docs
zane [Thu, 18 Jul 2013 03:32:26 +0000 (20:32 -0700)]
Adding svn configuration parameter, and docs
Aaron Stone [Wed, 17 Jul 2013 21:33:36 +0000 (14:33 -0700)]
Use git checkout --force instead of short -f everywhere
Aaron Stone [Wed, 17 Jul 2013 21:25:51 +0000 (14:25 -0700)]
Merge pull request #46 from Paulche/master
Enable unlimited nesting for submodule updating
Aaron Stone [Wed, 17 Jul 2013 20:43:24 +0000 (13:43 -0700)]
Merge pull request #78 from jhoblitt/git_provider_checkout_remote_refs
fix git provider checkout of a remote ref on an existing repo
Joshua Hoblitt [Tue, 16 Jul 2013 23:25:09 +0000 (16:25 -0700)]
fix git provider checkout of a remote ref on an existing repo
Per discussion of https://github.com/puppetlabs/puppetlabs-vcsrepo/issues/51 in
the git channel on freenode, EugeneKay <eugene@kashpureff.org> stated that `git
rev-parse` is not capable of inspecting remote refs but that `git ls-remote`
is. This patch makes a second attempt to resolve the ref with `ls-remote` if
`rev-parse` fails.
The git provider also appears to support several type features that are not
tagged under `has_features`. It's not clear if this is the best way to resolve
this issue or if the provider should be refactored to work with different type
features.
Demonstration of the problem with changing refs (branches and tags)
$ git --version
git version 1.7.1
$ cat master.pp branch.pp
vcsrepo { '/tmp/vcsrepo':
ensure => present,
provider => git,
source => 'https://github.com/puppetlabs/puppetlabs-vcsrepo.git',
revision => 'master',
}
vcsrepo { '/tmp/vcsrepo':
ensure => present,
provider => git,
source => 'https://github.com/puppetlabs/puppetlabs-vcsrepo.git',
revision => 'feature/cvs',
}
$ puppet apply --modulepath=`pwd`/.. master.pp
Notice: /Stage[main]//Vcsrepo[/tmp/vcsrepo]/ensure: Creating repository from present
Notice: /Stage[main]//Vcsrepo[/tmp/vcsrepo]/ensure: created
Notice: Finished catalog run in 2.19 seconds
$ puppet apply --modulepath=`pwd`/.. branch.pp
Error: /Stage[main]//Vcsrepo[/tmp/vcsrepo]: Could not evaluate: Execution of '/usr/bin/git rev-parse feature/cvs' returned 128: fatal: ambiguous argument 'feature/cvs': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
feature/cvs
Notice: Finished catalog run in 1.69 seconds
Aaron Stone [Wed, 17 Jul 2013 08:23:56 +0000 (01:23 -0700)]
Whitespace
Paul Chechetin [Fri, 21 Dec 2012 16:49:45 +0000 (20:49 +0400)]
Unlimited sudmodule's nesting for git provider
Aaron Stone [Tue, 16 Jul 2013 17:39:01 +0000 (10:39 -0700)]
Merge pull request #77 from arnoudj/hg_identity
Add user and ssh identity to the Mercurial provider.
Arnoud de Jonge [Mon, 15 Apr 2013 15:56:44 +0000 (17:56 +0200)]
Added ssh identity
hg_with_identity function renamed to hg_wrapper. Added ability to specify a user and an SSH identity.
Added extra options to the ssh command.
Identity and user fixed
Requirement for pp deleted.
Aaron Stone [Mon, 15 Jul 2013 17:27:21 +0000 (10:27 -0700)]
Merge pull request #76 from Paulche/patch-1
Add travis build-status image
Paul Chechetin [Mon, 15 Jul 2013 09:47:01 +0000 (13:47 +0400)]
Add travis build-status image
Aaron Stone [Mon, 15 Jul 2013 03:46:55 +0000 (20:46 -0700)]
Fix bzr specs broken for a while
Aaron Stone [Mon, 15 Jul 2013 03:00:55 +0000 (20:00 -0700)]
Fix git tests broken by dcd0d14
Aaron Stone [Sat, 13 Jul 2013 22:25:03 +0000 (15:25 -0700)]
Whitespace
Aaron Stone [Sat, 13 Jul 2013 22:20:41 +0000 (15:20 -0700)]
Merge pull request #40 from ajohnstone/master
Handle force in svn args
Aaron Stone [Sat, 13 Jul 2013 22:12:32 +0000 (15:12 -0700)]
Merge pull request #61 from hholzgra/master
"ensure => latest" support for bzr
Aaron Stone [Sat, 13 Jul 2013 22:06:06 +0000 (15:06 -0700)]
Merge pull request #73 from MESHMD/improve-git-doc
Improve Git SSH usage documentation
Aaron Stone [Sat, 13 Jul 2013 22:04:47 +0000 (15:04 -0700)]
Merge pull request #65 from rkhatibi/master
Add timeout to ssh connections
Aaron Stone [Sat, 13 Jul 2013 21:58:17 +0000 (14:58 -0700)]
And now specs do run
Aaron Stone [Sat, 13 Jul 2013 21:28:22 +0000 (14:28 -0700)]
Use https for rubygems source, update mocha
Aaron Stone [Sat, 13 Jul 2013 21:24:19 +0000 (14:24 -0700)]
Bundle exec rake spec in travis
Aaron Stone [Sat, 13 Jul 2013 21:21:51 +0000 (14:21 -0700)]
Merge pull request #75 from sodabrew/patch-2
Fix mocha for specs
Aaron Stone [Sat, 13 Jul 2013 21:18:28 +0000 (14:18 -0700)]
Fix mocha for specs
Matti Schneider [Tue, 18 Jun 2013 12:10:12 +0000 (14:10 +0200)]
Improve Git SSH usage documentation
Ramin K [Wed, 17 Apr 2013 20:36:43 +0000 (20:36 +0000)]
add timeout to ssh sessions negotiation to prevent github problems (or any other remote connection issues) from blocking the Puppet run
Ryan Coleman [Thu, 4 Apr 2013 21:16:53 +0000 (14:16 -0700)]
Add travis.yml to repo for automated CI
Ryan Coleman [Thu, 28 Mar 2013 18:11:16 +0000 (11:11 -0700)]
Add description field
Ryan Coleman [Thu, 28 Mar 2013 16:49:47 +0000 (09:49 -0700)]
Add summary line to Modulefile
Ryan Coleman [Thu, 28 Mar 2013 16:37:58 +0000 (09:37 -0700)]
Merge pull request #62 from puppetlabs/release/0.1.2
Update Modulefile for 0.1.2 release to Forge
Ryan Coleman [Thu, 28 Mar 2013 16:35:58 +0000 (09:35 -0700)]
Adding travis.yml file for publishing
Ryan Coleman [Mon, 25 Mar 2013 20:41:42 +0000 (13:41 -0700)]
Update Modulefile for 0.1.2 release to Forge
Version 0.1.2 includes several backwards compatible bug fixes.
Fixes include better handling of non-root users, new repository
clones will include proper permissions and will update origin before
checking out a specific revision.
Hartmut Holzgraefe [Fri, 22 Mar 2013 23:44:06 +0000 (00:44 +0100)]
"ensure => latest" support for bzr
Ben Ford [Wed, 20 Mar 2013 19:31:41 +0000 (12:31 -0700)]
Merge pull request #58 from sim0nf/fix_regex
Tighten regex to avoid matching the word 'commit' in message
Ben Ford [Mon, 18 Mar 2013 20:14:13 +0000 (13:14 -0700)]
Merge pull request #59 from binford2k/clone_as_non-root_user
Allow non-root users to clone a repo
Merging my own PR because it's just a rework of an existing PR.
Ben Ford [Mon, 18 Mar 2013 20:02:18 +0000 (13:02 -0700)]
Allow non-root users to clone a repo
Without this, git will report that it can't change back to /root
Simon Forman [Mon, 18 Mar 2013 13:59:56 +0000 (13:59 +0000)]
Tighten regex to avoid matching the word 'commit' in message
Ben Ford [Tue, 12 Mar 2013 23:20:08 +0000 (16:20 -0700)]
Merge pull request #56 from raphink/git_update_origin
Update origin if necessary before checking revision
This looks good. Thanks!
Ben Ford [Tue, 12 Mar 2013 16:55:57 +0000 (09:55 -0700)]
Merge pull request #57 from binford2k/master
Allows the creation of non-root repositories