浏览代码

vendor: update github.com/gogits/git-module (#4855)

Unknwon 6 年之前
父节点
当前提交
ae40bb00b3
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      vendor/github.com/gogits/git-module/repo_commit.go
  2. 3 3
      vendor/vendor.json

+ 1 - 1
vendor/github.com/gogits/git-module/repo_commit.go

@@ -104,7 +104,7 @@ func (repo *Repository) getCommit(id sha1) (*Commit, error) {
 		return c.(*Commit), nil
 	}
 
-	data, err := NewCommand("cat-file", "-p", id.String()).RunInDirBytes(repo.Path)
+	data, err := NewCommand("cat-file", "commit", id.String()).RunInDirBytes(repo.Path)
 	if err != nil {
 		if strings.Contains(err.Error(), "exit status 128") {
 			return nil, ErrNotExist{id.String(), ""}

+ 3 - 3
vendor/vendor.json

@@ -183,10 +183,10 @@
 			"revisionTime": "2016-08-10T03:50:02Z"
 		},
 		{
-			"checksumSHA1": "oSsxc1i4agO7Gp1kgiUxLDHCtKU=",
+			"checksumSHA1": "baBdY7sA0U60da7wfhIialHmMwU=",
 			"path": "github.com/gogits/git-module",
-			"revision": "0654b3dcf2e85ed96c9923cb65cae5341fe1df3f",
-			"revisionTime": "2017-11-16T04:59:35Z"
+			"revision": "5cc36acd9bc119acc0376a4db452e8ce55451c9f",
+			"revisionTime": "2017-11-16T18:10:54Z"
 		},
 		{
 			"checksumSHA1": "GBfb+meRaVNarQavLB/bzbDoBtY=",