Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 24, 2023
1 parent 65db724 commit 9197111
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev145"
version = "0.0.0.dev146"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
6 changes: 5 additions & 1 deletion src/repodynamics/actions/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,11 @@ def tag_version(self, ver: str | PEP440SemVer, msg: str = ""):
return

def push(self, amend: bool = False, set_upstream: bool = False):
new_hash = self.git.push(set_upstream=set_upstream, force_with_lease=self._amended or amend)
new_hash = self.git.push(
target="origin",
set_upstream=set_upstream,
force_with_lease=self._amended or amend
)
self._amended = False
if new_hash and self.git.current_branch_name() == self.ref_name:
self._hash_latest = new_hash
Expand Down

0 comments on commit 9197111

Please sign in to comment.