Skip to content
Snippets Groups Projects

New feature: allow protocol selection using DPT_GITHUB_PROTOCOL

Merged Aniol Martí requested to merge amarti/pkg-perl-tools:protocols-in-clone into master
All threads resolved!

Using the environment variable DPT_GITHUB_PROTOCOL={https,ssh} one can choose between these two protocols to be used by git clone. Until now there was only support for ssh, but the module already requires a token for the API, so having the option to use https can be useful (it is to me).

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
  • Aniol Martí added 1 commit

    added 1 commit

    • daa047e4 - Improve documentation adding explicitly which protocols are accepted

    Compare with previous version

  • Aniol Martí resolved all threads

    resolved all threads

    • Resolved by Aniol Martí

      Is the OAuth token really needed to clone through https? In case it is, you should probably pass it as the password, not the username of the URL, i.e. https://{github-user}:{oauth-token}/{org-name}/{repo}.git

      But I'm pretty sure that you don't have to pass the token to clone a public repo.

    • Resolved by Aniol Martí

      OTOH, why the need variable ends with word PROTOCOL but the param is named proto? Shouldn't both be named accordingly? I mean it's either proto or protocol in both cases.

  • Aniol Martí added 2 commits

    added 2 commits

    • 2f623c5c - Rename the parameter "proto" to "protocol"
    • 07e31afd - Add username in https url

    Compare with previous version

  • Aniol Martí resolved all threads

    resolved all threads

  • Alex Muntada
  • Aniol Martí added 1 commit

    added 1 commit

    • 3e956f0b - Fix spacing and rename "user" to "login" and "owner" to "user"

    Compare with previous version

  • Aniol Martí resolved all threads

    resolved all threads

  • merged

  • Alex Muntada mentioned in commit 4bd261f4

    mentioned in commit 4bd261f4

  • Please register or sign in to reply
    Loading