Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2017-09-05 18:33:40 +0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-09-05 18:33:40 +0300
commit5f3271e11c01cac7c89c787e7285d53be621e0df (patch)
tree5fa6f6d93b447462973c367d8817c6c19656c2e4 /internal/linguist
parenta9e32fbc5a2fcc2a5c261d90de662a3699d905c3 (diff)
Add missing cmd.Close in log.GetCommit
Diffstat (limited to 'internal/linguist')
-rw-r--r--internal/linguist/linguist.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/linguist/linguist.go b/internal/linguist/linguist.go
index 497f3b9a3..b8ab27269 100644
--- a/internal/linguist/linguist.go
+++ b/internal/linguist/linguist.go
@@ -11,8 +11,8 @@ import (
"path"
"strings"
+ "gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/config"
- "gitlab.com/gitlab-org/gitaly/internal/helper"
)
var (
@@ -28,7 +28,7 @@ type Language struct {
func Stats(ctx context.Context, repoPath string, commitID string) (map[string]int, error) {
cmd := exec.Command("bundle", "exec", "bin/ruby-cd", repoPath, "git-linguist", "--commit="+commitID, "stats")
cmd.Dir = config.Config.Ruby.Dir
- reader, err := helper.NewCommand(ctx, cmd, nil, nil, nil, os.Environ()...)
+ reader, err := command.New(ctx, cmd, nil, nil, nil, os.Environ()...)
if err != nil {
return nil, err
}