Closed omegahm closed 2 years ago
Thanks, @omegahm.
Currently, the script uses this git
command to fetch the upstream name:
git remote show
Do you know a way to fetch the correct remote when there are multiple ones? It will allow a quick fix. What is the response for the above command in your repo?
As I have two remotes, it shows both of them each on their own line:
$ git remote show
origin
production
I added a validation to prevent the script from crashing in v0.7.1.
Currently, I lack the resources to support multiple upstream.
Anyone in need of this feature, please do upvote this issue, or even better, contribute a PR.
@omegahm @davidraviv mind checking out this PR? Looks like its working correctly for me with these changes.
Thanks, @chrisgoffinet for the effort! I'll take a look at the PR. @omegahm I'll appreciate it if you can confirm that this PR works on your multi remotes repo.
@omegahm A new version that supports multiple upstream is not available. @chrisgoffinet Thanks for the effort in trying to improve the extension!
I hope you'll find the new version helpful. Cheers 🍻
Describe the bug I have a repository with multiple remotes (here:
origin
andproduction
). Doing agh clean-branches --dry-run
I getTo Reproduce Steps to reproduce the behavior:
gh clean-branches --dry-run