1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18881 from maribu/dist/tools/backport_pr

tools/backport_pr: finally fix running outside of repo's root
This commit is contained in:
Kaspar Schleiser 2022-11-11 23:33:34 +01:00 committed by GitHub
commit 5c31e722d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",