mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tools/backport_pr: finally fix running outside of repo's root
It turned out that 4983f8bb60
was not
enough to allow the tool to be executed from within
`dist/tools/backport_pr`. With this, I successfully tested it :)
This commit is contained in:
parent
19021d618e
commit
9bba2d074c
2
dist/tools/backport_pr/backport_pr.py
vendored
2
dist/tools/backport_pr/backport_pr.py
vendored
@ -240,7 +240,7 @@ def main():
|
||||
if new_branch in repo.branches:
|
||||
print(f"ERROR: Branch {new_branch} already exists")
|
||||
sys.exit(1)
|
||||
worktree_dir = os.path.join(args.gitdir, WORKTREE_SUBDIR)
|
||||
worktree_dir = os.path.join(repo.working_dir, WORKTREE_SUBDIR)
|
||||
repo.git.worktree(
|
||||
"add",
|
||||
"-b",
|
||||
|
Loading…
Reference in New Issue
Block a user