refs #3767 -- fix branch tracking #117
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue