Skip to content

Commit

Permalink
even-quicker
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath committed May 30, 2021
1 parent 53bc4d1 commit bd1455a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/git/commit_info_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ func GetLastCommitForPaths(commit *Commit, treePath string, paths []string) ([]*

go func() {
stderr := strings.Builder{}
err := NewCommand("rev-list", "--format=%T", commit.ID.String()).RunInDirPipeline(commit.repo.Path, revListWriter, &stderr)
args := []string{"rev-list", "--format=%T", commit.ID.String()}
if treePath != "" {
args = append(args, "--", treePath)
}
err := NewCommand(args...).RunInDirPipeline(commit.repo.Path, revListWriter, &stderr)
if err != nil {
_ = revListWriter.CloseWithError(ConcatenateError(err, (&stderr).String()))
} else {
Expand Down

0 comments on commit bd1455a

Please sign in to comment.