HomePhabricator

Improve GitInfo for reading packed refs

Description

Improve GitInfo for reading packed refs

GitInfo only reads branches in files /refs/heads/*; it should also
read those in /.git/packed-refs.

There are 4 tests in this commit to test this new "feature" and add some
code coverage to other methods. Given this class tests Git behaviour and
MediaWiki itself is versioned with Git, the test data are created during
the tests and removed at the end to avoid interference with Git as CVS.

Bug: T155747
Change-Id: Icccdf3ec797788582f836e2d8e267a1d714d50dc

Details

Provenance
Seb35Authored on Sep 15 2017, 8:29 AM
bd808Committed on Oct 2 2017, 3:47 AM
Parents
rMW44c06df91810: Merge "mw.loader: Return consistent object shape from splitModuleKey()"
Branches
Unknown
Tags
Unknown
ChangeId
Icccdf3ec797788582f836e2d8e267a1d714d50dc