Skip to content

Commit 0b61102

Browse files
committed
commit: fix wrong command used for get commit file status
1 parent dfc2c1e commit 0b61102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func GetCommitFileStatus(repoPath, commitID string) (*CommitFileStatus, error) {
289289
}()
290290

291291
stderr := new(bytes.Buffer)
292-
err := NewCommand("log", "-1", "--name-status", "--pretty=format:''", commitID).RunInDirPipeline(repoPath, w, stderr)
292+
err := NewCommand("show", "--name-status", "--pretty=format:''", commitID).RunInDirPipeline(repoPath, w, stderr)
293293
w.Close() // Close writer to exit parsing goroutine
294294
if err != nil {
295295
return nil, concatenateError(err, stderr.String())

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111
)
1212

13-
const _VERSION = "0.7.0"
13+
const _VERSION = "0.7.1"
1414

1515
func Version() string {
1616
return _VERSION

0 commit comments

Comments
 (0)