diff options
author | Jonathan Tripathy <jt@puppetlabs.com> | 2015-06-22 15:22:16 +0100 |
---|---|---|
committer | Jonathan Tripathy <jt@puppetlabs.com> | 2015-06-22 15:22:16 +0100 |
commit | ae60f5ccb7c00a0e162a06ba05d247688ffbce4b (patch) | |
tree | adcf2aa8966df1c28f13242d4501a3f202b650ed /spec | |
parent | d08d16bd71e10f439dfa3ff92626aeb38aa95303 (diff) | |
download | puppet-vcsrepo-ae60f5ccb7c00a0e162a06ba05d247688ffbce4b.tar.gz puppet-vcsrepo-ae60f5ccb7c00a0e162a06ba05d247688ffbce4b.tar.bz2 |
MODULES-2131 Git provider now takes account of revision property when using depth property.
Diffstat (limited to 'spec')
-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 116e357..29c6b3b 100644 --- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb @@ -60,7 +60,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(:git).with('branch', '-a').returns(branch_a_list(resource.value(:revision))) provider.expects(:git).with('checkout', '--force', resource.value(:revision)) |