Skip to content

Commit aa661ce

Browse files
committed
Don't fail for every checkout
Should only fail when the error stream contains an error message
1 parent ad9b0a5 commit aa661ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ ClassMethod SwitchBranch(targetBranchName As %String) As %Status
414414
do ..PrintStreams(errStream, outStream)
415415
// Checkout can fail due to unstaged changes
416416
set errs = errStream.Read()
417-
if (errs '= "") {
417+
if ($find(errs, "error")) {
418418
quit $$$ERROR($$$GeneralError, errs)
419419
}
420420
quit $$$OK

0 commit comments

Comments
 (0)