Skip to content

Commit 3b99e99

Browse files
committed
fixed order of branches in diff to tell which modifications have been made
1 parent 59ec8a6 commit 3b99e99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ ClassMethod Pull(remote As %String = "origin", preview As %Boolean = 0) As %Stat
355355
write !, "Fetch done"
356356
write !, "Files that will be modified by git pull: "
357357

358-
do ##class(SourceControl.Git.Utils).RunGitCommandWithInput("diff",,.errStream,.outStream, remote_"/"_branchName, "--name-status")
358+
do ##class(SourceControl.Git.Utils).RunGitCommandWithInput("diff",,.errStream,.outStream, branchName_".."_remote_"/"_branchName, "--name-status")
359359
while (outStream.AtEnd = 0) {
360360
set file = outStream.ReadLine()
361361
set modification = ##class(SourceControl.Git.Modification).%New()
@@ -2036,3 +2036,4 @@ ClassMethod ResetSourceControlClass()
20362036
}
20372037

20382038
}
2039+

0 commit comments

Comments
 (0)