Skip to content

Commit

Permalink
Robustify parsing of the PR reference (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
kernhanda authored Nov 19, 2024
1 parent efba3a0 commit 2d93a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stack_pr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def is_valid_ref(ref: str, branch_name_template: str) -> bool:


def last(ref: str, sep: str = "/") -> str:
return ref.rsplit("/", 1)[1]
return ref.rsplit(sep, 1)[-1]


# TODO: Move to 'modular.utils.git'
Expand Down

0 comments on commit 2d93a26

Please sign in to comment.