File tree 1 file changed +9
-9
lines changed
lib/puppet/provider/vcsrepo
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -731,15 +731,15 @@ def git_ssh_with_identity_ssh_file(*args)
731
731
732
732
# Execute git with the given args, running it as the user specified.
733
733
def exec_git ( *args )
734
- exec_args = {
735
- failonfail : true ,
736
- combine : true ,
737
- custom_environment : { 'HOME' => Dir . home }
738
- }
739
- if @resource . value ( :user ) && @resource . value ( :user ) != Facter [ 'id' ] . value
740
- exec_args [ :custom_environment ] = { 'HOME' => Dir . home ( @resource . value ( :user ) ) }
741
- exec_args [ :uid ] = @resource . value ( :user )
742
- end
734
+ exec_args = {
735
+ failonfail : true ,
736
+ combine : true ,
737
+ custom_environment : { 'HOME' => Dir . home } ,
738
+ }
739
+
740
+ if @resource . value ( :user ) && @resource . value ( :user ) != Facter [ 'id' ] . value
741
+ exec_args [ :custom_environment ] = { 'HOME' => Dir . home ( @resource . value ( :user ) ) }
742
+ exec_args [ :uid ] = @resource . value ( :user )
743
743
end
744
744
withumask do
745
745
Puppet ::Util ::Execution . execute ( [ :git , args ] , **exec_args )
You can’t perform that action at this time.
0 commit comments