Skip to content

Commit 7db9617

Browse files
committed
fixed bug with merges
1 parent 0cb26a0 commit 7db9617

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
16081608
// defining variables for if statement use later
16091609
set syncIris = 0
16101610
set diffBase = ""
1611-
1611+
set diffCompare = ""
16121612
if (command = "checkout") || (command = "merge") || (command = "rebase") {
16131613
set syncIris = 1
16141614
set diffCompare = args(args)
@@ -1629,10 +1629,16 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
16291629
}
16301630
}
16311631

1632+
if (diffCompare = "--no-commit") || (diffCompare = "--abort") {
1633+
set syncIris = 0
1634+
}
1635+
16321636
if syncIris {
1637+
set ^mtemphw("diffc", $i(^mtemphw("diffc"))) = diffCompare
16331638
if diffBase = "" {
16341639
set diffBase = ..GetCurrentBranch()
16351640
}
1641+
set ^mtemphw("diffb", $i(^mtemphw("diffb"))) = diffBase
16361642
do ##class(SourceControl.Git.Utils).RunGitCommandWithInput("diff",,.errorStream,.outputStream, diffBase_".."_diffCompare, "--name-status")
16371643
while (outputStream.AtEnd = 0) {
16381644
set file = outputStream.ReadLine()

0 commit comments

Comments
 (0)