Skip to content

Commit

Permalink
Ignore ancestry when switching svn branches
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 6, 2023
1 parent 7447149 commit 9391e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/chef/libraries/subversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def sync_command
c = scm :update, new_resource.svn_arguments, verbose, authentication, proxy, "-r#{revision_int}", new_resource.destination
Chef::Log.debug "#{new_resource} updated working copy #{new_resource.destination} to revision #{new_resource.revision}"
else
c = scm :switch, new_resource.svn_arguments, verbose, authentication, proxy, "-r#{revision_int}", new_resource.repository, new_resource.destination
c = scm :switch, new_resource.svn_arguments, verbose, authentication, proxy, "-r#{revision_int}", "--ignore-ancestry", new_resource.repository, new_resource.destination
Chef::Log.debug "#{new_resource} updated working copy #{new_resource.destination} to #{new_resource.repository} revision #{new_resource.revision}"
end
c
Expand Down

0 comments on commit 9391e90

Please sign in to comment.