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:
parent
e909a41ce3
commit
4983f8bb60
2
dist/tools/backport_pr/backport_pr.py
vendored
2
dist/tools/backport_pr/backport_pr.py
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user