Skip to content

Commit c58f254

Browse files
committed
fix: rebasing from remote loads code changed on the remote
we now diff the old head with the new head. before we diffed the remote branch with the new head, which misses all the changes made on the remote branch.
1 parent 750a363 commit c58f254

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
@@ -440,7 +440,7 @@ ClassMethod MergeDefaultRemoteBranch(Output alert As %String = "") As %Boolean
440440
do ..RunGitWithArgs(.errStream, .outStream, "fetch", "origin", defaultMergeBranch_":"_defaultMergeBranch)
441441
do ..PrintStreams(errStream, outStream)
442442

443-
do ..RunGitWithArgs(,.outStream, "rev-parse", defaultMergeBranch)
443+
do ..RunGitWithArgs(,.outStream, "rev-parse", "HEAD")
444444
set startSha = outStream.ReadLine()
445445

446446
// Start a transaction so code changes can be rolled back
@@ -2693,4 +2693,3 @@ ClassMethod BaselineExport(pCommitMessage = "", pPushToRemote = "") As %Status
26932693
}
26942694

26952695
}
2696-

0 commit comments

Comments
 (0)