Home
last modified time | relevance | path

Searched hist:e5358e0d3f36623db1a07144a87eac720232d466 (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/_test/tests/inc/
H A Dinfoutils_getversiondata.test.phpe5358e0d3f36623db1a07144a87eac720232d466 Wed Jul 08 13:14:44 UTC 2026 Andreas Gohr <gohr@cosmocode.de> fix(infoutils): use git --pretty=reference to avoid Windows escaping

On Windows escapeshellarg() replaces percent signs with spaces, so the
--pretty=format:%h %cd argument reached git as literal text. Git then
echoed the format string verbatim, a truthy value that made the version
display report an empty hash and the date "h" while skipping the working
.git-directory fallback.

The named --pretty=reference format carries no percent signs on the
command line, so the shell path works on Windows too. Its "hash
(subject, date)" output is validated before being trusted.

Introduced in b9e35b2f0.

/dokuwiki/inc/
H A Dinfoutils.phpe5358e0d3f36623db1a07144a87eac720232d466 Wed Jul 08 13:14:44 UTC 2026 Andreas Gohr <gohr@cosmocode.de> fix(infoutils): use git --pretty=reference to avoid Windows escaping

On Windows escapeshellarg() replaces percent signs with spaces, so the
--pretty=format:%h %cd argument reached git as literal text. Git then
echoed the format string verbatim, a truthy value that made the version
display report an empty hash and the date "h" while skipping the working
.git-directory fallback.

The named --pretty=reference format carries no percent signs on the
command line, so the shell path works on Windows too. Its "hash
(subject, date)" output is validated before being trusted.

Introduced in b9e35b2f0.