Skip to content

Commit 781fa01

Browse files
committed
Fix bug
1 parent 6b11900 commit 781fa01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ func (repo *Repository) GetTreePathLatestCommit(refName, treePath string) (*Comm
7171
if err != nil {
7272
return nil, err
7373
}
74-
return repo.GetCommit(stdout)
74+
return repo.GetCommit(strings.TrimSpace(stdout))
7575
}

0 commit comments

Comments
 (0)