Skip to content

Commit 5423212

Browse files
committed
Fix failure of git
1 parent 36a0d85 commit 5423212

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3098,13 +3098,12 @@ ClassMethod GetRedactedRemote() As %String
30983098

30993099
ClassMethod SetConfiguredRemote(url) As %String
31003100
{
3101-
set outStream = ""
31023101
do ..GetConfiguredRemote(.remoteExists)
31033102
set returnCode = $select(
31043103
remoteExists&&(url=""): ##class(SourceControl.Git.Utils).RunGitCommandWithInput("remote",,.errStream,.outStream,"remove","origin"),
31053104
remoteExists&&(url'=""): ##class(SourceControl.Git.Utils).RunGitCommandWithInput("remote",,.errStream,.outStream,"set-url","origin",url),
31063105
'remoteExists&&(url'=""): ##class(SourceControl.Git.Utils).RunGitCommandWithInput("remote",,.errStream,.outStream,"add","origin",url),
3107-
1: 0)
3106+
1: -1)
31083107
if (returnCode '= 0) {
31093108
$$$ThrowStatus($$$ERROR($$$GeneralError,"git reported failure"))
31103109
}

0 commit comments

Comments
 (0)