git-browser.cgi: prepare for bidi switchover
commited6b5394590cbff7b546e1c03dc5704e109a222d
authorKyle J. McKay <mackyle@gmail.com>
Tue, 1 Dec 2020 04:08:30 +0000 (30 21:08 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 1 Dec 2020 04:08:30 +0000 (30 21:08 -0700)
treef1c3740ba2d6c1c097f446330542934dcda3f794
parent93b50f6751822124b6265b3132c109c8a0e2cdb0
git-browser.cgi: prepare for bidi switchover

Sanitize the arguments passed to `git rev-list` by:

 1) always including the rev/path separator '--'
 2) using the exclude ref prefix '^' rather than '--not'

This makes sure the arguments are not misinterpreted by
git especially after switching over to a bidirectional pipe
in the future.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
git-browser.cgi