Skip to content
Snippets Groups Projects
Commit 9bf03e76 authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

post-receive: convert pushvars in Git options for GitLab

In many articulation places, we make sure not to transmit an
empty dict, in order not to update all existing tests.

Because pushvars have to be a a mapping (as environment variables
in the CLI, already parsed as a dict in the internal API)
and Git options are arbitrary strings (which GitLab can interpret
as mapping if they have the `=` token), we decided arbitrarily to translate
as follows:

 value is empty string -> send just the key
 otherwise, send `key=value`

Later on we can have the CLI parser of Mercurial also accept
just `KEY` to be synonymous of `KEY=`.
parent 25f6bdb1
Branches
Tags
No related merge requests found
Pipeline #23165 passed
Pipeline: hgitaly

#23167

    Loading
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment