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.
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
Ben Ford [Mon, 11 Mar 2013 23:38:40 +0000 (19:38 -0400)]
Create the repository with proper permissions.
Raphaël Pinson [Wed, 6 Mar 2013 16:06:26 +0000 (17:06 +0100)]
Update origin if necessary before checking revision
Gary Larizza [Wed, 31 Oct 2012 00:53:31 +0000 (17:53 -0700)]
Release version 0.1.1
This commit updates the Modulefile for a 0.1.1 release
Gary Larizza [Wed, 31 Oct 2012 00:40:13 +0000 (17:40 -0700)]
Merge pull request #35 from sodabrew/dummy-provider
Add a dummy provider, remove 'defaultfor' from all other providers.
Aaron Stone [Fri, 19 Oct 2012 08:37:17 +0000 (01:37 -0700)]
Revert pull request #27 until it comes with unit tests.
Aaron Stone [Fri, 19 Oct 2012 08:35:10 +0000 (01:35 -0700)]
Merge branch 'master' into dummy-provider
Conflicts:
lib/puppet/provider/vcsrepo/cvs.rb
spec/support/fixture_helpers.rb
spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
Aaron Stone [Fri, 19 Oct 2012 08:25:19 +0000 (01:25 -0700)]
Dummy provider raises an exception if it is used. Tests to prove it.
Aaron Stone [Fri, 19 Oct 2012 07:26:39 +0000 (00:26 -0700)]
Use symbols consistently with provider.expects()
Aaron Stone [Fri, 19 Oct 2012 06:31:29 +0000 (23:31 -0700)]
Remove excess whitespace.
Aaron Stone [Fri, 19 Oct 2012 06:23:05 +0000 (23:23 -0700)]
Update tests to match current code.
Aaron Stone [Fri, 19 Oct 2012 05:01:46 +0000 (22:01 -0700)]
Get the specs running under bundler.
Gary Larizza [Fri, 19 Oct 2012 01:14:44 +0000 (18:14 -0700)]
Merge pull request #31 from ghoneycutt/noticket/master/missing_trailing_comma
Adds comma to last attribute to comply with style
Gary Larizza [Fri, 19 Oct 2012 01:12:09 +0000 (18:12 -0700)]
Merge pull request #30 from ghoneycutt/noticket/master/inappropriate_whitespace
Removes trailing whitespace
Gary Larizza [Fri, 19 Oct 2012 01:11:34 +0000 (18:11 -0700)]
Merge pull request #27 from ody/default_identity
Add default user to run git as.
Chris Price [Fri, 19 Oct 2012 00:24:47 +0000 (17:24 -0700)]
Merge pull request #36 from lifton/master
Replace references to Reductive Labs with Puppet Labs
Chris Price [Fri, 19 Oct 2012 00:22:45 +0000 (17:22 -0700)]
Merge pull request #37 from cprice-puppet/maint/master/update-git-documentation
Updated git documentation
Eric Hayes [Tue, 3 Jul 2012 17:58:40 +0000 (13:58 -0400)]
Updated git documentation
Joshua Harlan Lifton [Fri, 19 Oct 2012 00:10:23 +0000 (17:10 -0700)]
Fix links to documentation and update LICENSE
Previous to this commit the documentation and license files referred
to Reductive Labs and docs.reductivelabs.com. This commit updates
those files to refer to Puppet Labs and docs.puppetlabs.com.
Aaron Stone [Thu, 18 Oct 2012 21:57:15 +0000 (14:57 -0700)]
Add a dummy provider, remove 'defaultfor' from all other providers. Resolves warning about multiple default providers for :vcsrepo.
Ryan Coleman [Fri, 12 Oct 2012 20:42:26 +0000 (13:42 -0700)]
Merge pull request #32 from rcoleman/release_0.1.0
0.1.0 Release
Ryan Coleman [Wed, 19 Sep 2012 20:30:53 +0000 (13:30 -0700)]
Merge branch 'master' of github.com:puppetlabs/puppetlabs-vcsrepo
Ryan Coleman [Wed, 19 Sep 2012 20:15:43 +0000 (13:15 -0700)]
Merge pull request #33 from bobsh/ticket/master/16495
(#16495, #15660) Fix regression for notifications and pulls on git provider
Ken Barber [Wed, 19 Sep 2012 19:45:12 +0000 (20:45 +0100)]
(#16495, #15660) Fix regression for notifications and pulls on git provider
The last merge:
4d2942edc26e7cd144a3178a1a7f6470ea401345 brought some
regression that this patch should hopefully fix.
Firstly, the tool no longer supported updating a branch as the syntax for git
pull on anything but a branch was invalid.
This also removes the extra call to 'checkout' which was causing behaviour
to occur without notifying puppet, thus causing subscription notifications
to not fire.
Ryan Coleman [Wed, 19 Sep 2012 15:19:39 +0000 (08:19 -0700)]
0.1.0 Release
This commit prepares the Modulefile for a 0.1.0 Release.
This release is a bug fix and feature release. It includes general
fixes, puppet-lint compliance, adds the ability to specify a git
remote and allows git operations to run as a specific user.
Contributions came from Matt Robinson, Andreas Gerstmayr,
Adam Gibbins, Nick Jackson, John Chilton & Jesusaurus.
Garrett Honeycutt [Tue, 28 Aug 2012 22:24:15 +0000 (00:24 +0200)]
Adds comma to last attribute to comply with style
Garrett Honeycutt [Tue, 28 Aug 2012 22:20:34 +0000 (00:20 +0200)]
Removes trailing whitespace
Cody Herriges [Tue, 3 Jul 2012 22:20:42 +0000 (15:20 -0700)]
Add default user to run git as.
Add a default to the user parameter of root, which is the user that
the git commands would have ran in previously versions of this module.
Without this an upgrade to the lastest release would cause syntax
error all over a person's code base and provide no benefit.
James Turnbull [Fri, 29 Jun 2012 10:59:43 +0000 (03:59 -0700)]
Merge pull request #25 from ejhayes/master
Checkout git repository as user, fixed ensure latest, ssh options
Eric Hayes [Fri, 29 Jun 2012 09:50:12 +0000 (02:50 -0700)]
Run git operations as a specific user (puppetlabs ticket 4773), added ssh options to ensure no prompting (also fixed in pull request #1 by riseuplabs), added ability to keep repository up to date with latest (puppetlabs ticket 11278)
James Turnbull [Wed, 23 May 2012 17:22:57 +0000 (10:22 -0700)]
Merge pull request #24 from jesusaurus/feature/git
Add the ability to specify a git remote
Jesusaurus [Sun, 13 May 2012 03:42:05 +0000 (20:42 -0700)]
Add the ability to specify a git remote
Rather than fill the git provider with hard-coded references to
origin, it would be better to abstract out which remote the resource
is fetching from. But since this is only relevant to decentralized
version-control systems, a multiple_remotes feature was added for
the parameter to depend on. So far this is only implemented for git
remotes, but it could be implemented for other VCSs as well.
James Turnbull [Sun, 13 May 2012 04:34:59 +0000 (21:34 -0700)]
Merge pull request #18 from andihit/master
don't recreate bare repo if it exists already - fixes http://projects.puppetlabs.com/issues/12303
James Turnbull [Sun, 13 May 2012 04:32:56 +0000 (21:32 -0700)]
Merge pull request #23 from jmchilton/
d69a27f3bb5111822e1065f385a53b6ee99cb16a
Fix failing hg provider spec
John Chilton [Wed, 2 May 2012 17:35:16 +0000 (12:35 -0500)]
Fix failing hg provider spec caused by refactoring in commit
f1120f2d9b121097b7e77709328144af330d0b34
Ken Barber [Thu, 5 Apr 2012 13:55:25 +0000 (14:55 +0100)]
Merge branch 'patch-1'
* patch-1:
(#13062) Added clarification that 'revision' can also be used for branches.
Nick Jackson [Thu, 5 Apr 2012 12:35:48 +0000 (14:35 +0200)]
(#13062) Added clarification that 'revision' can also be used for branches.
Andreas Gerstmayr [Sun, 18 Mar 2012 16:26:54 +0000 (17:26 +0100)]
add begin/except for hg pull (mercurial 2.1 returns 1 for hg pull when no changes are found; this change gets reverted in mercurial 2.1.1)
Andreas Gerstmayr [Sun, 18 Mar 2012 16:12:48 +0000 (17:12 +0100)]
Merge remote-tracking branch 'upstream/master'
James Turnbull [Sun, 11 Mar 2012 21:47:14 +0000 (14:47 -0700)]
Merge pull request #19 from adamgibbins/master
Improved Puppet DSL style as per the guidelines.
Adam Gibbins [Sun, 11 Mar 2012 21:10:08 +0000 (21:10 +0000)]
Make Puppet DSL compliant with the style guides and puppet lint.
Andreas Gerstmayr [Sun, 26 Feb 2012 17:15:10 +0000 (18:15 +0100)]
don't recreate bare repo if it exists already (fixes #12303)
Pieter van de Bruggen [Fri, 20 Jan 2012 00:39:21 +0000 (16:39 -0800)]
Merge pull request #17 from mmrobins/ticket/master/11798_fix_sha1_revision
(#11798) Fix git checkout of revisions
Matt Robinson [Thu, 19 Jan 2012 22:40:49 +0000 (14:40 -0800)]
(#11798) Fix git checkout of revisions
The git provider had some problems checking out SHA1s - it couldn't.
And what's worse, it lied about what it was doing saying that it did
checkout the SHA1.
There was also a bug where if you specified a different branch than you
were on, it was doing a `reset --hard` to the specified branch. For
example, if master was checked out, and you set "revision => stable", it
would `git reset --hard stable` on the master branch instead of just
checking out stable. Maybe the original author did this to get around
being unable to checkout when you had local changes, but the --force
flag to checkout will fix that.
With this change, you should now be able to specify a branch, tag, or
SHA1 in the revision attribute and have it work.
James Turnbull [Mon, 26 Dec 2011 23:42:13 +0000 (15:42 -0800)]
Merge pull request #15 from webfactory/fix_10787
Fix (#10787) - Various fixes/tweaks for the CVS provider
James Turnbull [Sat, 26 Nov 2011 08:51:31 +0000 (00:51 -0800)]
Merge pull request #14 from webfactory/fix_10788
Fix (#10788) - Avoid unnecessary remote operations in the vcsrepo type
James Turnbull [Sat, 26 Nov 2011 08:51:03 +0000 (00:51 -0800)]
Merge pull request #13 from webfactory/cvs_module_name
Suggested fix for (#10751) by adding a "module" parameter
James Turnbull [Sat, 19 Nov 2011 19:04:16 +0000 (11:04 -0800)]
Merge pull request #16 from mfournier/missing-working_copy_exists
Added missing 'working_copy_exists?' method.
Marc Fournier [Sat, 19 Nov 2011 17:16:40 +0000 (18:16 +0100)]
Added missing 'working_copy_exists?' method.
James Turnbull [Sat, 12 Nov 2011 17:07:07 +0000 (09:07 -0800)]
Merge pull request #12 from webfactory/fix_9083
Fix (#9083) as suggested by the original bug reporter.
James Turnbull [Sat, 12 Nov 2011 17:06:03 +0000 (09:06 -0800)]
Merge pull request #11 from cPanelScott/master
Bug Fix: Some ownerships in .git directory are 'root' after vcsrepo's retrieve is called
Matthias Pigulla [Sat, 12 Nov 2011 13:08:13 +0000 (14:08 +0100)]
Fix owner/group as well (#10787)
Matthias Pigulla [Sat, 12 Nov 2011 12:31:01 +0000 (13:31 +0100)]
Fix (#10787) - Various fixes/tweaks for the CVS provider
Matthias Pigulla [Sat, 12 Nov 2011 12:27:56 +0000 (13:27 +0100)]
Fix (#10788) - Avoid unnecessary remote operations in the vcsrepo type
Matthias Pigulla [Fri, 11 Nov 2011 18:08:57 +0000 (19:08 +0100)]
Fix (#10751) by adding a new "module" parameter for the CVS provider
Matthias Pigulla [Fri, 11 Nov 2011 18:10:39 +0000 (19:10 +0100)]
Fix (#9083) as suggested by the original bug reporter.
Scott O'Neil [Wed, 9 Nov 2011 00:46:41 +0000 (18:46 -0600)]
Run update_owner_and_excludes after update_preferences and get_revision
These are called when the type is retrieve'd. Without this, the ownerships
for any .git metafiles fetch'd durring the retrieve will be owned by
root. This patch fixes that by invoking update_owner_and_excludes after
fetch'ng
Ken Barber [Thu, 3 Nov 2011 20:00:05 +0000 (13:00 -0700)]
Merge pull request #9 from webfactory/topic_optional_commands
Fix (#10440) by making all commands optional
Matthias Pigulla [Thu, 6 Oct 2011 21:35:41 +0000 (23:35 +0200)]
Fix (#10440) by making all commands optional
This will work around the issue in http://projects.puppetlabs.com/issues/6907, as the agent run will no longer fail if one of the commands is not installed.
This gives you enough time to install the necessary packages through Puppet (make sure you get the dependencies right), as the agent won't fail unless you really start accessing the repository.
James Turnbull [Wed, 21 Sep 2011 18:10:10 +0000 (11:10 -0700)]
Incremented version
James Turnbull [Mon, 29 Aug 2011 08:15:51 +0000 (01:15 -0700)]
Fixed Bug #9219 - vcsrepo updates too often
If vcsrepo is used with ensure => latest to keep something from a larger repository checked out it will trigger an update every time something changes anywhere in the repository, not just in the part that’s actually checked out.
In combination with a busy development team and a vcsrepo resource with notify => Service[foo] this means frequent restarts of a service for no good reason.
The attached patch solves the issue by looking at the “Last Changed Rev” line from svn info instead of “Revision”.
Patch thanks to: Knut Arne Bjørndal
Nibalizer [Thu, 18 Aug 2011 17:56:51 +0000 (10:56 -0700)]
Merge pull request #6 from justintime/svn-basic-auth
Adding basic_auth feature and adding --non-interactive to all svn command
Justin Ellison [Thu, 18 Aug 2011 13:30:09 +0000 (08:30 -0500)]
Forgot to add the parameters to the type definition.
Daniel Pittman [Wed, 17 Aug 2011 17:54:10 +0000 (10:54 -0700)]
Merge pull request #5 from justintime/svn-update_owner
Adding in missing support for owner and group properties.
Justin Ellison [Wed, 17 Aug 2011 16:10:34 +0000 (11:10 -0500)]
Adding in missing support for owner and group properties.
Justin Ellison [Wed, 17 Aug 2011 15:07:40 +0000 (10:07 -0500)]
Adding basic_auth feature and adding --non-interactive to all svn commands.
The basic_auth feature allows the manifest to specify an optional
basic_auth_username and basic_auth_password to be sent to the subversion
server over HTTP(S).
Adding --non-interactive to all svn commands just lets svn know that
there's not a user on the other end to send y/n questions.
James Turnbull [Thu, 28 Jul 2011 16:45:47 +0000 (09:45 -0700)]
Merge pull request #4 from nearbuy/master
Add identity support for git provider, fix a couple bugs
Nate Mueller [Thu, 28 Jul 2011 02:52:36 +0000 (19:52 -0700)]
Updated for ruby 1.9. Not sure how important this actually is. Works on both now.
Nate Mueller [Thu, 28 Jul 2011 02:52:03 +0000 (19:52 -0700)]
Fixed an issue with
8e51aebd4cf77c7d68ee that broke git when you didn't specify a revision
Nate Mueller [Thu, 28 Jul 2011 02:28:23 +0000 (19:28 -0700)]
Add an identity param, respected by the git provider, to use a non-standard ssh identity file
James Turnbull [Mon, 6 Jun 2011 23:19:04 +0000 (16:19 -0700)]
Merge pull request #3 from ody/bug/master/7797
Makes git tags actually work as a revision option.
Cody Herriges [Tue, 24 May 2011 09:24:26 +0000 (21:24 +1200)]
(#7797) Makes git tags actually work.
Fixes a number of issues with the git provider. remote_branch_revision?
method was always returning true because it would always at least return
something, even if that something was a zero length array. You normally
don't desire a tag to become a branch since it creates ambiguity so I
removed that. latest method had no concept of (no branch) and so would
fail if you switched to a remote branch or a tag. Then finally
revision sha1 returned by 'git rev-parse' for tags is not the revision
of the commit the tag represents. We have to use 'git show' and do
some text parsing to actually figure out which commit goes with which
tag.
Marc Fournier [Mon, 16 May 2011 09:01:20 +0000 (11:01 +0200)]
Fix #7534: provider.revision should not get called when repo doesn't exist.
Aleksey Lim [Thu, 20 Jan 2011 22:51:33 +0000 (06:51 +0800)]
git: Update submodules recursively
Adam Gandelman [Tue, 15 Mar 2011 17:22:17 +0000 (01:22 +0800)]
git.rb: update_references before touching tags. tags created since last vcsrepo run fail otherwise
Aaron Bull Schaefer [Tue, 14 Dec 2010 18:21:42 +0000 (02:21 +0800)]
support setting the owner/group in hg provider
Aaron Bull Schaefer [Tue, 14 Dec 2010 17:43:52 +0000 (01:43 +0800)]
restructure conditional to fix Regexp.quote(nil) error
Aaron Bull Schaefer [Tue, 14 Dec 2010 17:42:30 +0000 (01:42 +0800)]
add definitions for latest{,?} in hg provider
Aaron Bull Schaefer [Tue, 14 Dec 2010 01:25:34 +0000 (09:25 +0800)]
fix undefined method 'working_copy_exists?' error for ProviderHg
Brett Lentz [Tue, 14 Sep 2010 21:14:45 +0000 (14:14 -0700)]
git: rework how to do excludes