@@ -292,9 +292,7 @@ ClassMethod Push(remote As %String = "origin") As %Status
292
292
{
293
293
do ##class (SourceControl.Git.Utils ).RunGitCommandWithInput (" branch" ,,.errStream ,.outstream ," --show-current" )
294
294
set branchName = outstream .ReadLine (outstream .Size )
295
- zwrite branchName
296
295
do ..RunGitWithArgs (.errStream , .outStream , " push" , remote , branchName )
297
- w " git push"
298
296
do errStream .OutputToDevice ()
299
297
do outStream .OutputToDevice ()
300
298
quit $$$OK
@@ -322,33 +320,6 @@ ClassMethod Pull() As %Status
322
320
quit $$$OK
323
321
}
324
322
325
- ClassMethod ConfigureGitAuthentication (Username As %String , Password As %String )
326
- {
327
- //git config credential.helper store
328
- //write !,"git config --system credential.helper manager"
329
- //git config credential.helper '!f() { printf "%s\n" "username=$USER" "password=$PASS"; };f'
330
- do ..RunGitCommand (" config" , .errStream , .outStream , " --global" , " credential.helper" , " store" )
331
- do errStream .OutputToDevice ()
332
- do outStream .OutputToDevice ()
333
- /*
334
- write !,"git config --global credential.modalPrompt false"
335
- do ..RunGitCommand("config", .errStream, .outStream, "--global","credential.modalPrompt", "false")
336
- do errStream.OutputToDevice()
337
- do outStream.OutputToDevice()
338
- */
339
- /*
340
- set file = ##class(%Stream.FileCharacter).%New()
341
- do file.WriteLine(Username)
342
- do file.WriteLine(Password)
343
- $$$ThrowOnError(file.%Save())
344
- set file.RemoveOnClose = 1
345
- */
346
- write !," git fetch"
347
- do ..RunGitCommand (" fetch" , .errStream , .outStream )
348
- do errStream .OutputToDevice ()
349
- do outStream .OutputToDevice ()
350
- }
351
-
352
323
ClassMethod IsNamespaceInGit () As %Boolean [ CodeMode = expression ]
353
324
{
354
325
##class (%File ).Exists (..TempFolder ()_" .git" )
@@ -1136,11 +1107,7 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
1136
1107
set outLog = ##class (%Library.File ).TempFilename ()
1137
1108
set errLog = ##class (%Library.File ).TempFilename ()
1138
1109
1139
- zwrite newArgs
1140
-
1141
1110
set returnCode = $zf (-100 ," /SHELL /STDOUT=" _$$$QUOTE(outLog )_" /STDERR=" _$$$QUOTE(errLog )_$Case (inFile , " " :" " , :" /STDIN=" _inFile )," git" ,newArgs ...)
1142
-
1143
- write " Returned after external commands"
1144
1111
1145
1112
set errStream = ##class (%Stream.FileCharacter ).%OpenId (errLog ,,.sc )
1146
1113
set outStream = ##class (%Stream.FileCharacter ).%OpenId (outLog ,,.sc )
0 commit comments