spiffcode / ghedit

A fast, powerful web-based code editor for GitHub repositories
https://spiffcode.github.io/ghedit/
MIT License
341 stars 49 forks source link

problems when a tag and a branch use the same name #7

Open scottlu opened 8 years ago

scottlu commented 8 years ago

Pass hashes rather than names to github api, so there is no ambiguity when a tag and a branch use the same name. GHCode is currently passing ref names instead of hashes. In this case Github needs to decide branch or tag and probably defaults to branch, which will be a problem for GHCode when user intended to view a tag.