Repository navigation
v1.7.2
Changes since v1.7.1.
Security
- Fix
Repository::isValidRepository()andisValidRepositoryAndBranch()reading the
configuration of a repository of the temporary directory, where they rungit ls-remote:
another user of the machine may create a.gitthere, whose rewrites of URLs
(url.<base>.insteadOf) make git run a command, or check another repository. - Refuse a
git://URL whose port starts with a dash, even encoded, like
git://host:-oProxyCommand=.../repository: old versions of git, 1.8.4 for instance, pass it
to the command ofcore.gitProxy, which reads it as an option.
Bug fixes
- Fix a
TypeErrorwhen hiding the credentials of a long text, the megabytes of a blob in the
logs for instance: with a logger, reading a file with a long password in a URL failed. It
no longer takes seconds either, without the JIT of PCRE. - Fix
WorkingCopy::getUntrackedFiles()returning the former name of a staged rename, when
it starts with??. - Fix a hash ending with a new line read as a hash:
Repository::getCommit()returned a
commit holding it, instead of throwing aReferenceNotFoundException, andgetTree()and
getBlob()did not trigger the deprecation of a name that isn't a hash. - Read the annotated tags of other tools like git does: with a header after the tagger, or
without the empty line before the message,Tag::getMessage()and the methods reading the
tagger threw aRuntimeException.
Deprecations
Parser\DiffParserandParser\ParserBase, internal in 2.0: parse a diff with
Diff::parse().