]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
git: don't redundantly pass "--" to git_sha1
authorSimon McVittie <smcv@debian.org>
Mon, 9 Jan 2017 13:58:58 +0000 (13:58 +0000)
committerSimon McVittie <smcv@debian.org>
Wed, 11 Jan 2017 15:33:27 +0000 (15:33 +0000)
commit61a47d7e951537ba3e8f64775078e9e324bc1be2
tree4917371a6f8409c154e440ed1d9e83ce8f693fc9
parenteab53c2c566910d149ea0107227ae13015ff3b82
git: don't redundantly pass "--" to git_sha1

git_sha1 already puts "--" before its arguments, so

    git_sha1_file($dir, 'doc/index.mdwn')

would have incorrectly invoked

    git rev-list --max-count=1 HEAD -- -- doc/index.mdwn

If there is no file in the wiki named "--", that's harmless, because
it merely names the latest revision in which either "--" or
"doc/index.mdwn" changed. However, it could return incorrect results
if there is somehow a file named "--".

(cherry picked from commit 0463357392471f58ccd2c7f39cafabd8472e129b)
IkiWiki/Plugin/git.pm