refs #3767 -- fix branch tracking #117

Merged
vtroshchinskiy merged 1 commits from fix-branch-tracking into main 2025-09-10 09:41:53 +02:00
2 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.4.6] - 2025-09-10
## Change
- Oggit branch tracking
## [1.4.5] - 2025-09-09
## Change

View File

@ -1734,6 +1734,12 @@ class OpengnsysGitLibrary:
new_branch = repo.create_head(name)
repo.head.reference = new_branch
# Set the upstream
origin = repo.remotes.origin
origin.push(refspec=f"{name}:{name}")
new_branch.set_tracking_branch(origin.refs[name])
repo.head.reset(index=True, working_tree=True)
return True