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

This commit is contained in:
Unknwon
2017-11-16 13:13:28 -05:00
parent 3dd93f5533
commit ae40bb00b3
2 changed files with 4 additions and 4 deletions

View File

@@ -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(), ""}