mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 22:57:19 +02:00
vendor: update github.com/gogits/git-module (#4855)
This commit is contained in:
2
vendor/github.com/gogits/git-module/repo_commit.go
generated
vendored
2
vendor/github.com/gogits/git-module/repo_commit.go
generated
vendored
@@ -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(), ""}
|
||||
|
||||
Reference in New Issue
Block a user