Skip to content

Commit 21dad12

Browse files
committed
now handles status returns and throws on error
1 parent d0c3a5e commit 21dad12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ ClassMethod Pull(remote As %String = "origin", preview As %Boolean = 0) As %Stat
448448

449449
set sc = ..RunGitWithArgs(.errStream, .outStream, "pull", remote, branchName)
450450

451+
quit sc
451452
}
452453

453454
ClassMethod Clone(remote As %String) As %Status
@@ -1613,7 +1614,8 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
16131614

16141615
if syncIris {
16151616

1616-
do ..SyncIrisWithRepo(.files)
1617+
$$$ThrowOnError(..SyncIrisWithRepo(.files))
1618+
16171619
}
16181620
quit returnCode
16191621
}

0 commit comments

Comments
 (0)