Fails if no origin
Closed this issue · 3 comments
AstraLuma commented
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:
- Make a repo without an
origin
remote - 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)
AstraLuma commented
Yes, there is a remote set on the branch (git push -u
).
AstraLuma commented
Ok, updated git trim, this seems to be fixed.
foriequal0 commented
Great! Glad to hear that.