Age | Commit message (Collapse) | Author |
|
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).
|
|
|
|
Don't 'su' if passed user is current user
|
|
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.
|
|
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
|
|
Add the option to shallow clones with git
|
|
The new parameter used to indicate that you want a shallow clone is `:depth`
|
|
|
|
Bug fix: Git provider on_branch? retains trailing newline
|
|
This commit also contains git provider `latest' method formatting changes;
squashed by request.
|
|
Correctly handle detached head for 'latest' on latest Git versions
|
|
|
|
|
|
|
|
Prepare 0.2.0 release.
|
|
|
|
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.
|
|
Add a blank dependencies section and stringify versions.
|
|
|
|
|
|
FM-103: Add metadata.json to all modules.
|
|
Move from rspec1 to rspec2
|
|
|
|
|
|
convert_bare_to_working_copy
|
|
|
|
Also add some fixtures for previous tests.
|
|
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.
|
|
'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.
|
|
update git provider to handle checking out into an existing (empty) dir
|
|
Documented the "module" attribute.
|
|
|
|
|
|
|
|
SVN provider should check for '^Revision:' and not '^Last Changed Rev:'
|
|
|
|
SVN provider should check for '^Revision:' and not '^Last Changed
Rev:'. Addresses GitHub Issue #43.
|
|
added support for changing upstream repo url - rebase of #74
|
|
|
|
|
|
added checks that the URL of the WC matches the URL from the manifest
changed from using "update" to "switch"
|
|
Try to get Travis to respect the three different puppet versions
|
|
versions, but limit Puppet 2.6.x to Ruby 1.8.7.
|
|
Correct use of withenv
|
|
|
|
|
|
Add support for master svn repositories
|