merge.py corrigé (#35)
'3.11'.find('.')
Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com>
Reviewed-on: #35
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: Christophe Nanteuil <christophenan@noreply.localhost>
Co-committed-by: Christophe Nanteuil <christophenan@noreply.localhost>
This commit is contained in:
parent
c45606574a
commit
26ccd93ef1
1 changed files with 1 additions and 1 deletions
2
merge.py
2
merge.py
|
|
@ -38,7 +38,7 @@ def parse_args():
|
|||
|
||||
def setup_repo(repo_path: Path, branch: str):
|
||||
"""Ensure we're up-to-date."""
|
||||
if branch.find('.') == 2:
|
||||
if branch.find('.') == 1:
|
||||
run("git", "-C", repo_path, "checkout", branch)
|
||||
run("git", "-C", repo_path, "pull", "--ff-only")
|
||||
else: # it's a commit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue