[google/go-github] 212ef6: support refs with or without 'refs/' prefix

3 views
Skip to first unread message

GitHub

unread,
Sep 4, 2014, 11:09:26 AM9/4/14
to go-g...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages