Skip to content

Commit 8d6425e

Browse files
committed
Cleanup
1 parent 55ca37e commit 8d6425e

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,7 @@ ClassMethod Push(remote As %String = "origin") As %Status
292292
{
293293
do ##class(SourceControl.Git.Utils).RunGitCommandWithInput("branch",,.errStream,.outstream,"--show-current")
294294
set branchName = outstream.ReadLine(outstream.Size)
295-
zwrite branchName
296295
do ..RunGitWithArgs(.errStream, .outStream, "push", remote, branchName)
297-
w "git push"
298296
do errStream.OutputToDevice()
299297
do outStream.OutputToDevice()
300298
quit $$$OK
@@ -322,33 +320,6 @@ ClassMethod Pull() As %Status
322320
quit $$$OK
323321
}
324322

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-
352323
ClassMethod IsNamespaceInGit() As %Boolean [ CodeMode = expression ]
353324
{
354325
##class(%File).Exists(..TempFolder()_".git")
@@ -1136,11 +1107,7 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
11361107
set outLog = ##class(%Library.File).TempFilename()
11371108
set errLog = ##class(%Library.File).TempFilename()
11381109

1139-
zwrite newArgs
1140-
11411110
set returnCode = $zf(-100,"/SHELL /STDOUT="_$$$QUOTE(outLog)_" /STDERR="_$$$QUOTE(errLog)_$Case(inFile, "":"", :" /STDIN="_inFile),"git",newArgs...)
1142-
1143-
write "Returned after external commands"
11441111

11451112
set errStream = ##class(%Stream.FileCharacter).%OpenId(errLog,,.sc)
11461113
set outStream = ##class(%Stream.FileCharacter).%OpenId(outLog,,.sc)

0 commit comments

Comments
 (0)