simeg / eureka

💡 CLI tool to input and store your ideas without leaving the terminal
MIT License
763 stars 45 forks source link

Fix failure when a reference already exists #82

Closed Javier-varez closed 3 years ago

Javier-varez commented 3 years ago

When creating the target branch, if it already exists git2 will return an error with class reference and code exists. We should only return if the error is different than this.

simeg commented 3 years ago

Hey @Javier-varez, thanks for contributing!

I'm unable to reproduce this error. Can you describe in more details how the repo should be setup to generate this error?

I was able to reproduce it. Maybe it's time to write some integration tests towards this git package..

simeg commented 3 years ago

Awesome, thank you @Javier-varez! Will push a new version soon.