summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-07-17Merge pull request #78 from jhoblitt/git_provider_checkout_remote_refsAaron Stone
fix git provider checkout of a remote ref on an existing repo
2013-07-17fix git provider checkout of a remote ref on an existing repoJoshua Hoblitt
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
2013-07-17WhitespaceAaron Stone
2013-07-16Merge pull request #77 from arnoudj/hg_identityAaron Stone
Add user and ssh identity to the Mercurial provider.
2013-07-16Added ssh identityArnoud de Jonge
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.
2013-07-15Merge pull request #76 from Paulche/patch-1Aaron Stone
Add travis build-status image
2013-07-15Add travis build-status imagePaul Chechetin
2013-07-14Fix bzr specs broken for a whileAaron Stone
2013-07-14Fix git tests broken by dcd0d14Aaron Stone
2013-07-13WhitespaceAaron Stone
2013-07-13Merge pull request #40 from ajohnstone/masterAaron Stone
Handle force in svn args
2013-07-13Merge pull request #61 from hholzgra/masterAaron Stone
"ensure => latest" support for bzr
2013-07-13Merge pull request #73 from MESHMD/improve-git-docAaron Stone
Improve Git SSH usage documentation
2013-07-13Merge pull request #65 from rkhatibi/masterAaron Stone
Add timeout to ssh connections
2013-07-13And now specs do runAaron Stone
2013-07-13Use https for rubygems source, update mochaAaron Stone
2013-07-13Bundle exec rake spec in travisAaron Stone
2013-07-13Merge pull request #75 from sodabrew/patch-2Aaron Stone
Fix mocha for specs
2013-07-13Fix mocha for specsAaron Stone
2013-06-18Improve Git SSH usage documentationMatti Schneider
2013-04-17add timeout to ssh sessions negotiation to prevent github problems (or any ↵Ramin K
other remote connection issues) from blocking the Puppet run
2013-04-04Add travis.yml to repo for automated CIRyan Coleman
2013-03-28Add description fieldRyan Coleman
2013-03-28Add summary line to ModulefileRyan Coleman
2013-03-28Merge pull request #62 from puppetlabs/release/0.1.2Ryan Coleman
Update Modulefile for 0.1.2 release to Forge
2013-03-28Adding travis.yml file for publishingRyan Coleman
2013-03-25Update Modulefile for 0.1.2 release to ForgeRyan Coleman
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.
2013-03-23"ensure => latest" support for bzrHartmut Holzgraefe
2013-03-20Merge pull request #58 from sim0nf/fix_regexBen Ford
Tighten regex to avoid matching the word 'commit' in message
2013-03-18Merge pull request #59 from binford2k/clone_as_non-root_userBen Ford
Allow non-root users to clone a repo Merging my own PR because it's just a rework of an existing PR.
2013-03-18Allow non-root users to clone a repoBen Ford
Without this, git will report that it can't change back to /root
2013-03-18Tighten regex to avoid matching the word 'commit' in messageSimon Forman
2013-03-12Merge pull request #56 from raphink/git_update_originBen Ford
Update origin if necessary before checking revision This looks good. Thanks!
2013-03-12Merge pull request #57 from binford2k/masterBen Ford
Allows the creation of non-root repositories
2013-03-11Create the repository with proper permissions.Ben Ford
2013-03-06Update origin if necessary before checking revisionRaphaël Pinson
2012-11-14Handle arg force for svnAndrew Johnstone
2012-10-30Release version 0.1.1Gary Larizza
This commit updates the Modulefile for a 0.1.1 release
2012-10-30Merge pull request #35 from sodabrew/dummy-providerGary Larizza
Add a dummy provider, remove 'defaultfor' from all other providers.
2012-10-19Revert pull request #27 until it comes with unit tests.Aaron Stone
2012-10-19Merge branch 'master' into dummy-providerAaron Stone
Conflicts: lib/puppet/provider/vcsrepo/cvs.rb spec/support/fixture_helpers.rb spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
2012-10-19Dummy provider raises an exception if it is used. Tests to prove it.Aaron Stone
2012-10-19Use symbols consistently with provider.expects()Aaron Stone
2012-10-18Remove excess whitespace.Aaron Stone
2012-10-18Update tests to match current code.Aaron Stone
2012-10-18Get the specs running under bundler.Aaron Stone
2012-10-18Merge pull request #31 from ghoneycutt/noticket/master/missing_trailing_commaGary Larizza
Adds comma to last attribute to comply with style
2012-10-18Merge pull request #30 from ghoneycutt/noticket/master/inappropriate_whitespaceGary Larizza
Removes trailing whitespace
2012-10-18Merge pull request #27 from ody/default_identityGary Larizza
Add default user to run git as.
2012-10-18Merge pull request #36 from lifton/masterChris Price
Replace references to Reductive Labs with Puppet Labs