Skip to content

Commit 1b6ae7d

Browse files
authored
Merge pull request #872 from raymond-rebbeck/push-set-upstream
Always set the remote as the upstream branch when pushing, for consistency with Web UI
2 parents 0c0b64c + 92179b7 commit 1b6ae7d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Fixed
1616
- When cloning a repo with Configure, that repo's embedded-git-config file will overwrite previous settings (#819)
1717
- Settings page no longer removes remote when saving after cloning (#858)
18+
- Always set the remote as the upstream branch when pushing (#871)
1819
- Fixed import of HL7 and LUT files added at the same time as their mappings (#864)
1920

2021
## [2.13.1] - 2025-09-16

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ ClassMethod Push(remote As %String = "origin", force As %Boolean = 0) As %Status
616616
if (force) {
617617
set args($i(args)) = "--force"
618618
}
619+
set args($i(args)) = "--set-upstream"
619620
set args($i(args)) = remote
620621
set args($i(args)) = branchName
621622
do ..RunGitWithArgs(.errStream, .outStream, "push", args...)

0 commit comments

Comments
 (0)