How could I easily find a branch with a particular commit and checkout to it with rugged so that I won't end with 'detached HEAD' state?
Step by step I'd like to:
- Clone repository
repo.lookup commithash
to return catch exception and exit ifRugged::OdbError: Object not found
happens- find a branch containing given commit hash
- checkout to that branch