nickgerace / gfold

CLI tool to help keep track of your Git repositories, written in Rust
https://crates.io/crates/gfold
Apache License 2.0
283 stars 20 forks source link

Error when remote is not 'origin' #192

Closed AckslD closed 2 years ago

AckslD commented 2 years ago

When the upstream of a branch I get the error:

Error: Git2Rs(Error { code: -3, klass: 4, message: "no reference found for shorthand 'origin/<branch-name>'" })

In this case the upstream is called 'fork' of the given branch.

nickgerace commented 2 years ago

I'll take a look at this soon. The short reason why this is likely happening: there's some hardcoded logic to look for origin/<branch-name> for the unpushed check if I recall correctly. I've been a bit busy, but will take a look soon.

nickgerace commented 2 years ago

I should mention too, I'll try to add your scenario here as an integration test!