Skip to content

Commit 37da37d

Browse files
authored
Merge pull request #324 from isc-pbarton/fix-pull
Git pull correctly actions modified files
2 parents 59ec8a6 + 3b99e99 commit 37da37d

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)