Skip to content

Commit e05862f

Browse files
committed
repo_commit: GetCommit return error without a wrapper
1 parent 73275fa commit e05862f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.idea
2+
*.sublime-project
3+
*.sublime-workspace

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.6.8"
13+
const _VERSION = "0.6.9"
1414

1515
func Version() string {
1616
return _VERSION

repo_commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (repo *Repository) GetCommit(commitID string) (*Commit, error) {
129129
var err error
130130
commitID, err = GetFullCommitID(repo.Path, commitID)
131131
if err != nil {
132-
return nil, fmt.Errorf("GetCommitFullID: %v", err)
132+
return nil, err
133133
}
134134
id, err := NewIDFromString(commitID)
135135
if err != nil {

0 commit comments

Comments
 (0)