sorenlouv / backport

A simple CLI tool that automates the process of backporting commits on a GitHub repo
https://github.com/sqren/backport/blob/main/docs/config-file-options.md
Apache License 2.0
241 stars 57 forks source link

Allow running backport from backport dir #388

Closed sorenlouv closed 2 years ago

sorenlouv commented 2 years ago

When running backport from inside the backport dir an error is thrown:

Refusing to clone repo into "/Users/sqren/.backport/repositories/elastic/kibana" when current working directory is "/Users/sqren/.backport/repositories/elastic/kibana". Please change backport directory via --dir option or run backport from another location

This is overly restrictive. It should be possible to run backport from within the backport dir itself if it exists.