From 45af1697b89d66eb6e72af5a079364cfc7fd1115 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 18 Mar 2017 19:48:54 +0800 Subject: [PATCH] no need to trim file ref --- remote/gitlab/client/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote/gitlab/client/project.go b/remote/gitlab/client/project.go index 287655e22..f21f1a48a 100644 --- a/remote/gitlab/client/project.go +++ b/remote/gitlab/client/project.go @@ -105,7 +105,7 @@ func (c *Client) RepoRawFileRef(id, ref, filepath string) ([]byte, error) { }, QMap{ "filepath": filepath, - "ref": strings.TrimPrefix(ref, "refs/heads/"), + "ref": ref, }, )