Skip to content

Commit f3fd329

Browse files
authored
Merge pull request #509 from raymond-rebbeck/main
After a fetch perform a diff against the remote of the current branch
2 parents 3cb5080 + c5ac5e5 commit f3fd329

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Added warnings when user is using incompatible git version (#488)
1818
- Fixed the back button navigation between WebUI and Settings page (#361)
1919
- Basic mode Sync operation now imports items changed on the remote merge branch (#506)
20+
- Fetch diff output uses correct remote branch (#509)
2021

2122
## [2.5.0] - 2024-09-24
2223

cls/SourceControl/Git/Utils.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ ClassMethod Fetch(ByRef diffFiles) As %Status
534534
do ..RunGitCommand("fetch", .errStream, .outStream)
535535
write !, "Fetch done"
536536
kill errStream, outStream
537-
do ..RunGitCommand("diff", .errStream, .outStream, "..origin", "--name-only")
537+
do ..RunGitCommand("diff", .errStream, .outStream, "..origin/"_..GetCurrentBranch(), "--name-only")
538538
set diffFiles = ""
539539
while (outStream.AtEnd = 0) {
540540
set diffFiles = diffFiles_$listbuild(outStream.ReadLine())

0 commit comments

Comments
 (0)