Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
d8cbc48
commit 212ef69
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters