Yoginth 7 rokov pred
rodič
commit
621e304b86

+ 5 - 0
vendor/gitlab.com/gitote/go-gitote-client/media_types.go

@@ -0,0 +1,5 @@
+package gitote
+
+const (
+	MediaApplicationSHA = "application/vnd.gitote.sha"
+)

+ 7 - 0
vendor/gitlab.com/gitote/go-gitote-client/repo_commit.go

@@ -2,6 +2,7 @@ package gitote
 
 import (
 	"fmt"
+	"net/http"
 )
 
 // CommitMeta contains meta information of a commit in terms of API.
@@ -40,3 +41,9 @@ func (c *Client) GetSingleCommit(user, repo, commitID string) (*Commit, error) {
 	commit := new(Commit)
 	return commit, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/commits/%s", user, repo, commitID), nil, nil, &commit)
 }
+
+func (c *Client) GetReferenceSHA(user, repo, ref string) (string, error) {
+	data, err := c.getResponse("GET", fmt.Sprintf("/repos/%s/%s/commits/%s", user, repo, ref),
+		http.Header{"Accept": []string{MediaApplicationSHA}}, nil)
+	return string(data), err
+}

+ 1 - 1
vendor/gopkg.in/macaron.v1/README.md

@@ -7,7 +7,7 @@ Package macaron is a high productive and modular web framework in Go.
 
 ## Getting Started
 
-The minimum requirement of Go is **1.3**.
+The minimum requirement of Go is **1.6**.
 
 To install Macaron:
 

+ 2 - 2
vendor/gopkg.in/macaron.v1/context.go

@@ -262,7 +262,7 @@ func (ctx *Context) Params(name string) string {
 
 // SetParams sets value of param with given name.
 func (ctx *Context) SetParams(name, val string) {
-	if !strings.HasPrefix(name, ":") {
+	if name != "*" && !strings.HasPrefix(name, ":") {
 		name = ":" + name
 	}
 	ctx.params[name] = val
@@ -270,7 +270,7 @@ func (ctx *Context) SetParams(name, val string) {
 
 // ReplaceAllParams replace all current params with given params
 func (ctx *Context) ReplaceAllParams(params Params) {
-	ctx.params = params;
+	ctx.params = params
 }
 
 // ParamsEscape returns escapred params result.

+ 1 - 1
vendor/gopkg.in/macaron.v1/macaron.go

@@ -32,7 +32,7 @@ import (
 	"github.com/go-macaron/inject"
 )
 
-const _VERSION = "1.3.1.0306"
+const _VERSION = "1.3.2.1216"
 
 func Version() string {
 	return _VERSION

+ 4 - 4
vendor/vendor.json

@@ -471,9 +471,9 @@
 			"revisionTime": "2018-12-15T04:53:36Z"
 		},
 		{
-			"checksumSHA1": "IFWTWYTdvxtgujSPb4RzQi/osVg=",
+			"checksumSHA1": "Nn3oahnBkjSQYjKhteZtk2ANlYU=",
 			"path": "gitlab.com/gitote/go-gitote-client",
-			"revision": "2fa1b6ceccec3de2096e35d57176ad026c5ea5c1",
+			"revision": "04b5ff713e79b2c8711480de3f43c62c8de09013",
 			"revisionTime": "2018-12-15T05:23:13Z"
 		},
 		{
@@ -723,9 +723,9 @@
 			"revisionTime": "2016-08-08T14:54:09Z"
 		},
 		{
-			"checksumSHA1": "pckQxg3OkU4fPL5TBeNDtCYFJKc=",
+			"checksumSHA1": "+PRNmovbaIeAtxPWIZrfRddRjwc=",
 			"path": "gopkg.in/macaron.v1",
-			"revision": "c1be95e6d21e769e44e1ec33cec9da5837861c10",
+			"revision": "dfcb80ca86e8534962c62812efd93209c7e600e7",
 			"revisionTime": "2018-03-06T06:20:08Z"
 		},
 		{