Skip to content
Snippets Groups Projects

Add support for git -c parameters to git-upload-pack

Merged Stan Hu requested to merge sh-add-config-git-upload-pack into master
1 unresolved thread
Edited by Stan Hu

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
  • Stan Hu mentioned in issue gitlab-shell#98

    mentioned in issue gitlab-shell#98

  • Stan Hu changed title from Add GIT_CONFIG_PARAMETERS support to git-upload-pack to Add support for git -c parameters to git-upload-pack

    changed title from Add GIT_CONFIG_PARAMETERS support to git-upload-pack to Add support for git -c parameters to git-upload-pack

  • Stan Hu resolved all discussions

    resolved all discussions

  • Stan Hu changed the description

    changed the description

  • Author Maintainer

    @jacobvosmaer-gitlab Thanks! Would you mind releasing a new version of gitaly-proto?

  • Author Maintainer

    It appears in gitlab-shell we execute a gitaly-upload-pack binary and pass arguments in serialized JSON form, but this is what we have to do to make repeated bytes work in this form (https://stackoverflow.com/a/20105590/1992201):

    $ ./go_build/bin/gitaly-upload-pack foo '{"repository":{"relative_path":"gitlab-ci.git","storage_name":"default"},"gl_repository":"project-1","gl_id":"key-148","git_config_parameters":[[123, 123], [124]]}

    I just put dummy values at the end to demonstrate that unmarshalling byte arrays is less than ideal. We can do it, but is it worth the trouble?

  • Author Maintainer

    For this reason, I propose we just change this to repeated string. Thoughts?

  • Please register or sign in to reply
    Loading