File tree 1 file changed +0
-13
lines changed
lib/puppet/provider/vcsrepo
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -731,7 +731,6 @@ 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
- if Etc . uname [ :sysname ] == 'Windows_NT'
735
734
exec_args = {
736
735
failonfail : true ,
737
736
combine : true ,
@@ -741,19 +740,7 @@ def exec_git(*args)
741
740
exec_args [ :custom_environment ] = { 'HOME' => Dir . home ( @resource . value ( :user ) ) }
742
741
exec_args [ :uid ] = @resource . value ( :user )
743
742
end
744
- else
745
- exec_args = {
746
- failonfail : true ,
747
- combine : true ,
748
- custom_environment : { 'HOME' => Etc . getpwuid ( Process . uid ) . dir }
749
- }
750
-
751
- if @resource . value ( :user ) && @resource . value ( :user ) != Facter [ 'id' ] . value
752
- exec_args [ :custom_environment ] = { 'HOME' => Etc . getpwnam ( @resource . value ( :user ) ) . dir }
753
- exec_args [ :uid ] = @resource . value ( :user )
754
- end
755
743
end
756
-
757
744
withumask do
758
745
Puppet ::Util ::Execution . execute ( [ :git , args ] , **exec_args )
759
746
end
You can’t perform that action at this time.
0 commit comments