Skip to content

Commit

Permalink
try to get push to work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
iwishiwasaneagle committed Apr 24, 2022
1 parent beb02a7 commit 9a9fd23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/git_release/git_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def push_to_remote(tag: SemVer, remote: str = "origin", path: pathlib.Path = Non
repo = get_repo(path)

origin = repo.remotes[remote]
origin.push([repo.active_branch, semver_dataclass_to_string(tag)])
origin.push([str(repo.active_branch)]).raise_if_error()
origin.push([semver_dataclass_to_string(tag)]).raise_if_error()


def get_current_repo_version(path: pathlib.Path = None):
Expand Down

0 comments on commit 9a9fd23

Please sign in to comment.