aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/gogits
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-11-16 13:13:28 -0500
committerUnknwon <u@gogs.io>2017-11-16 13:13:28 -0500
commitae40bb00b3a53bcb0143a6c8b3c7bd087b7a3962 (patch)
treef122c93b5b55eb1c3504bc105b0a75aa4e69739b /vendor/github.com/gogits
parent3dd93f5533f6634ae334d097a5daa8d38beb6d18 (diff)
vendor: update github.com/gogits/git-module (#4855)
Diffstat (limited to 'vendor/github.com/gogits')
-rw-r--r--vendor/github.com/gogits/git-module/repo_commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/gogits/git-module/repo_commit.go b/vendor/github.com/gogits/git-module/repo_commit.go
index 34349c68..6b629d4d 100644
--- a/vendor/github.com/gogits/git-module/repo_commit.go
+++ b/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(), ""}