This is an archive of the discontinued Mercurial Phabricator instance.

tests: make test-subrepo-git.t compatible with git's master->main rename
ClosedPublic

Authored by martinvonz on Jan 12 2021, 8:34 PM.

Details

Summary

Git is about to change the default branch from "master" to
"main". Recent versions has started warning about that, which makes
tests fail. I assume the tests would fail in a different way once the
default has changed. To make us compatible with that name change,
let's set configure the default to be "master". That value makes the
tests still work on older Git version (those where the default branch
name is not configurable).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Jan 12 2021, 8:34 PM
pulkit accepted this revision.Jan 13 2021, 5:09 AM
This revision is now accepted and ready to land.Jan 13 2021, 5:09 AM