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

tools/backport_pr.py: improve usability

Add `search_parent_directories=True` to `git.Repo()` so that
`backport_pr.py` can be called anywhere within the RIOT git repo
without manually passing the repo root path via `--gitdir`.

Previously the tool had to be called from the RIOT base repo.
This commit is contained in:
Marian Buschsieweke 2022-11-10 09:32:49 +01:00
parent e909a41ce3
commit 4983f8bb60
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -224,7 +224,7 @@ def main():
sys.exit(5)
print(f"Backport based on branch {release_fullname}")
repo = git.Repo(args.gitdir)
repo = git.Repo(args.gitdir, search_parent_directories=True)
# Fetch current upstream
upstream_remote = _get_upstream(repo)
if not upstream_remote: