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:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-10-08 12:56:18 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-10-08 12:56:18 +0300
commit0468fc6d81b78cc379805c01fa5bf70081f0ad66 (patch)
tree1f9767bc96cb14ecace7103b4da2ce28051f41f4
parent58ccfe7fdbde5a3f1d492d7a196ea24f8fab4e34 (diff)
Port the RawBlame RPC to the GitDSL
Closes: https://gitlab.com/gitlab-org/gitaly/issues/1958
-rw-r--r--internal/service/commit/raw_blame.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/service/commit/raw_blame.go b/internal/service/commit/raw_blame.go
index 840d83ac6..6b923187d 100644
--- a/internal/service/commit/raw_blame.go
+++ b/internal/service/commit/raw_blame.go
@@ -21,7 +21,12 @@ func (s *server) RawBlame(in *gitalypb.RawBlameRequest, stream gitalypb.CommitSe
revision := string(in.GetRevision())
path := string(in.GetPath())
- cmd, err := git.Command(ctx, in.Repository, "blame", "-p", revision, "--", path)
+ cmd, err := git.SafeCmd(ctx, in.Repository, nil, git.SubCmd{
+ Name: "blame",
+ Flags: []git.Option{git.Flag{"-p"}},
+ Args: []string{revision},
+ PostSepArgs: []string{path},
+ })
if err != nil {
if _, ok := status.FromError(err); ok {
return err