summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-07Due to a network anomaly during a vcsrepo git clone you can get aMicah Anderson
'non-repository' at the path. That can be even just an empty directory. This makes it so further puppet runs cannot ever complete properly, because of this error: change from absent to present failed: Could not create repository (non-repository at path) This requires manual intervention to resolve (ie. removing the directory). It is possible to pass the 'force => true' parameter to vcsrepo to handle this, however, all this will do is remove whatever is there, even if it is a valid repository. That means on every puppet run you get the tree removed and then a new clone is done. This is less than ideal for a number of reasons. So this commit adds a test to determine if the location contains a valid repository and then it is used when 'force => true' to determine if it should replace the existing content with a fresh clone. Note: the valid_repo? check is also added to the 'def bare_git_config_exists?' because the test that is done there is intended to look for a bare git repository by checking to see if there 'config' is in the directory. This isn't a particularly robust test because 'config' could be in a directory, when it isn't a bare git repository (such as is common in a rails app) causing vcsrepo to mistakenly think it was a proper bare repository, when it isn't.
2013-08-12Merge pull request #89 from razorsedge/svn_revisionAaron Stone
SVN provider should check for '^Revision:' and not '^Last Changed Rev:'
2013-08-12And fix the rspec test to pass.Michael Arnold
2013-08-12Fix svn provider to look for '^Revision:'.Michael Arnold
SVN provider should check for '^Revision:' and not '^Last Changed Rev:'. Addresses GitHub Issue #43.
2013-07-30Merge pull request #84 from sodabrew/issue_12034_svnswitchHunter Haugen
added support for changing upstream repo url - rebase of #74
2013-07-25Handle revision update without source switch.Aaron Stone
2013-07-25Update specs for svn switchAaron Stone
2013-07-25added support for changing upstream repo urlMatthew Slowe
added checks that the URL of the WC matches the URL from the manifest changed from using "update" to "switch"
2013-07-25Merge pull request #85 from sodabrew/travis_puppet_versionAaron Stone
Try to get Travis to respect the three different puppet versions
2013-07-25Travis should run three Puppet versions in a matrix with three Ruby ↵Aaron Stone
versions, but limit Puppet 2.6.x to Ruby 1.8.7.
2013-07-25Merge pull request #86 from sodabrew/puppet_util_withenvAaron Stone
Correct use of withenv
2013-07-25The location of Puppet::Util[::Execution].withenv changed from Puppet 2.x to 3.xAaron Stone
2013-07-19Style adjustmentAaron Stone
2013-07-19Merge pull request #83 from sodabrew/issue_8331_svnlookAaron Stone
Add support for master svn repositories
2013-07-19Style and commentsAaron Stone
2013-07-19Add support for master svn repositories5Ub-Z3r0
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.
2013-07-19WhitespaceAaron Stone
2013-07-19WhitespaceAaron Stone
2013-07-19Merge pull request #82 from webfactory/issue-10791Aaron Stone
Allow for setting the CVS_RSH environment variable
2013-07-19Allow for setting the CVS_RSH environment variableMatthias Pigulla
2013-07-17Merge pull request #81 from sepulworld/svn-configurtation-parameterAaron Stone
Adding svn configuration parameter, and docs
2013-07-17Adding svn configuration parameter, and docszane
2013-07-17Use git checkout --force instead of short -f everywhereAaron Stone
2013-07-17Merge pull request #46 from Paulche/masterAaron Stone
Enable unlimited nesting for submodule updating
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-17Unlimited sudmodule's nesting for git providerPaul Chechetin
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