Skip to content

Commit 2d0a7bd

Browse files
authored
Merge pull request #490 from intersystems/fix-pull-preview
Fix pull preview when not on main branch
2 parents e9b8770 + 5ef31c8 commit 2d0a7bd

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
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- Fixed pull event handler handling of extremely long class names from diff (#467)
2626
- Fixed Git web UI prompt to update file list when file selected/unselected (#478)
2727
- Fixed folder settings in mappings to be saved and persist (#483)
28+
- Preview on the pull.csp page now shows commits from the correct branch (#490)
2829

2930
## [2.4.1] - 2024-08-02
3031

cls/_zpkg/isc/sc/git/Socket.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ClassMethod Run()
1616
Write !,"Current branch: ",branchName
1717
Do ##class(SourceControl.Git.Utils).RunGitWithArgs(.errStream, .outStream, "fetch")
1818
Kill errStream, outStream
19-
Do ##class(SourceControl.Git.Utils).RunGitWithArgs(.errStream, .outStream, "log", "HEAD..origin", "--name-status")
19+
Do ##class(SourceControl.Git.Utils).RunGitWithArgs(.errStream, .outStream, "log", "HEAD..origin/"_branchName, "--name-status")
2020
Do ##class(SourceControl.Git.Utils).PrintStreams(errStream, outStream)
2121
If (outStream.Size = 0) && (errStream.Size = 0) {
2222
Write !,"Already up to date."

0 commit comments

Comments
 (0)