foriequal0/git-trim

Fails if no origin

Closed this issue · 3 comments

Describe the bug
Seems to fail if there is no origin remote. (For triangular flows, I'll often use the remotes mine and upstream.)

Note that both git trim and git-trim -d merged:upstream trigger this problem

To Reproduce
Steps to reproduce the behavior:

  1. Make a repo without an origin remote
  2. Use git trim

Expected behavior
Do something useful

Actual behaviour

Error: remote 'origin' does not exist; class=Config (7); code=NotFound (-3)

Additional context and logs & dumps
You should remove sensitive informations before put them here.

  • Debian testing
  • 0.2.4
  • Installed via cargo

Logs and stacktraces

🐚 git trim
Fetching upstream
Fetching mine
Fetching pathunstrom
Fetching nbraud

Error: remote 'origin' does not exist; class=Config (7); code=NotFound (-3)

Yes, there is a remote set on the branch (git push -u).

Ok, updated git trim, this seems to be fixed.

Great! Glad to hear that.