Skip to content

Revert "Use standard `NETRC` environment variable name for netrc credential file"

Jaime Nuche requested to merge revert-netrc into master

This reverts commit 663c8437.

The automatic branch cut job started breaking with:

Exception: Command failed: ('/usr/bin/git', 'push', 'origin', 'HEAD:refs/for/wmf/1.43.0-wmf.20', '--push-option=l=Code-Review+2') Output: fatal: could not read Username for 'https://gerrit.wikimedia.org': No such device or address

The reason is hinted at at the start of the script:

netrc_file environment variable not set. Will not be able to push the branch cut commit

Renaming the environment variable from netrc_file to NETRC requires a similar change in the automatic branch script. It is not relying on Python requests as was assumed in the reverted commit.

Edited by Jaime Nuche

Merge request reports