Skip to content

Commit 7ef467b

Browse files
authored
Merge pull request puppetlabs#345 from martinmoerch/patch-1
[MODULES-5615] Fix for working_copy_exists
2 parents a48466c + 4d5fcda commit 7ef467b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/puppet/provider/vcsrepo/svn.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def working_copy_exists?
3434
return false if not File.directory?(@resource.value(:path))
3535
if @resource.value(:source)
3636
begin
37-
svn('status', @resource.value(:path))
37+
svn('info', @resource.value(:path))
3838
return true
3939
rescue Puppet::ExecutionFailure
4040
return false

spec/unit/puppet/provider/vcsrepo/svn_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@
175175
end
176176

177177
describe "checking existence" do
178-
it "should run `svn status` on the path when there's a source" do
178+
it "should run `svn info` on the path when there's a source" do
179179
resource[:source] = 'dummy'
180180
expects_directory?(true, resource.value(:path))
181-
provider.expects(:svn).with('status', resource[:path])
181+
provider.expects(:svn).with('info', resource[:path])
182182
provider.exists?
183183
end
184184
it "should run `svnlook uuid` on the path when there's no source" do

0 commit comments

Comments
 (0)