diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2015-06-22 15:27:40 +0100 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2015-06-22 15:27:40 +0100 |
commit | fd63cd94caae3aedcce53b8fad9fd1d5f29139da (patch) | |
tree | e6fc9191be3f358531fb6771f75ba146cbfe7220 /spec/unit/puppet/provider | |
parent | 4840ffbfbe2db1403979eac2e539a605917470f9 (diff) | |
parent | ae60f5ccb7c00a0e162a06ba05d247688ffbce4b (diff) | |
download | puppet-vcsrepo-fd63cd94caae3aedcce53b8fad9fd1d5f29139da.tar.gz puppet-vcsrepo-fd63cd94caae3aedcce53b8fad9fd1d5f29139da.tar.bz2 |
Merge pull request #255 from jonnytpuppet/depth_fix
MODULES-2131 Git provider now takes account of revision property when using depth property.
Diffstat (limited to 'spec/unit/puppet/provider')
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/git_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/git_spec.rb b/spec/unit/puppet/provider/vcsrepo/git_spec.rb index d33c98a..a240b50 100644 --- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb @@ -62,7 +62,7 @@ branches resource[:depth] = 1 Dir.expects(:chdir).with('/').at_least_once.yields Dir.expects(:chdir).with('/tmp/test').at_least_once.yields - provider.expects(:git).with('clone', '--depth', '1', resource.value(:source), resource.value(:path)) + provider.expects(:git).with('clone', '--depth', '1', '--branch', resource.value(:revision),resource.value(:source), resource.value(:path)) provider.expects(:update_submodules) provider.expects(:update_remote_url).with("origin", resource.value(:source)).returns false provider.expects(:git).with('branch', '-a').returns(branch_a_list(resource.value(:revision))) |