aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/gogs/git-module/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gogs/git-module/commit.go')
-rw-r--r--vendor/github.com/gogs/git-module/commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/gogs/git-module/commit.go b/vendor/github.com/gogs/git-module/commit.go
index 45c3437b..a0bed8b5 100644
--- a/vendor/github.com/gogs/git-module/commit.go
+++ b/vendor/github.com/gogs/git-module/commit.go
@@ -289,7 +289,7 @@ func GetCommitFileStatus(repoPath, commitID string) (*CommitFileStatus, error) {
}()
stderr := new(bytes.Buffer)
- err := NewCommand("log", "-1", "--name-status", "--pretty=format:''", commitID).RunInDirPipeline(repoPath, w, stderr)
+ err := NewCommand("show", "--name-status", "--pretty=format:''", commitID).RunInDirPipeline(repoPath, w, stderr)
w.Close() // Close writer to exit parsing goroutine
if err != nil {
return nil, concatenateError(err, stderr.String())