Branch: refs/heads/master
Home:
https://github.com/google/go-github
Commit: 212ef69dedaae61a77415911e32da7d1d6e3f2ec
https://github.com/google/go-github/commit/212ef69dedaae61a77415911e32da7d1d6e3f2ec
Author: Will Norris <
willn...@google.com>
Date: 2014-09-04 (Thu, 04 Sep 2014)
Changed paths:
M github/git_refs.go
M github/git_refs_test.go
Log Message:
-----------
support refs with or without 'refs/' prefix
The git ref methods were mostly written to not expect the 'refs/' prefix
on ref names, even though it is included the ref.Ref value returned by
GitHub. This resulted in ref values returned from some methods that
couldn't be passed to other methods. In reality, ref names passed to
these methods should normally include the prefix, but this change
supports either form for backwards compatibility.
Fixes #133