Skip to content
Snippets Groups Projects

WIP: Workhorse to serve raw commits

Closed Zeger-Jan van de Weg requested to merge zj-workhorse-sends-commits into master
2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Added 16 commits:

    • 075f0d1b...02eb4ffe - 15 commits from branch master
    • 189205bb - Workhorse to serve raw commits

    Compare with previous version

  • Added 1 commit:

    • 1e28da8e - Workhorse to serve raw commits

    Compare with previous version

  • Zeger-Jan van de Weg Resolved all discussions

    Resolved all discussions

  • Added 1 commit:

    • 99f48d1e - Added route for plain commits

    Compare with previous version

  • Author Developer

    Either @nick.thomas or @jacobvosmaer-gitlab, could you review?

    Ill keep this WIP for now, as the CE part might still need some work, although this can be merged before the CE part is done.

  • @nick.thomas would you like to do the first round?

  • 7 "net/http"
    8
    9 "gitlab.com/gitlab-org/gitlab-workhorse/internal/helper"
    10 "gitlab.com/gitlab-org/gitlab-workhorse/internal/senddata"
    11 )
    12
    13 type show struct{ senddata.Prefix }
    14 type showParams struct {
    15 RepoPath string
    16 Sha string
    17 Format string
    18 }
    19
    20 var SendCommit = &show{"git-show-commit:"}
    21
    22 func (s *show) Inject(w http.ResponseWriter, r *http.Request, sendData string) {
  • Nick Thomas
  • Zeger-Jan van de Weg Resolved all discussions

    Resolved all discussions

  • Added 1 commit:

    Compare with previous version

  • 24 28 cmd.Stderr = os.Stderr
    25 29 return cmd
    26 30 }
    31
    32 func execGitCommand(w http.ResponseWriter, r *http.Request, cmd *exec.Cmd) {
    33 stdout, err := cmd.StdoutPipe()
    34 if err != nil {
    35 helper.Fail500(w, r, fmt.Errorf("execGitCommand: create stdout pipe: %v", err))
  • assigned to @zj

  • Author Developer

    @nick.thomas Given there is no clear way forward to generate correct output Ill close this for now.

  • @zj that's too bad! On the other hand, closing this also makes sense now that we are building Gitaly. Thanks for working on this.

  • Please register or sign in to reply
    Loading