summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Matthias Jaros <jarlucmat@mailbox.org>2026-08-03 15:01:15 +0200
committerGravatar Matthias Jaros <jarlucmat@mailbox.org>2026-08-03 15:01:15 +0200
commitc13506c41a21ae32125f31097b868ac090b926c1 (patch)
tree4e628e6fdcd06a1eb6a75a63675b49848b5e23e3 /src
parenta5f7be472ab80385ba9ea65c8d4684645a460ed2 (diff)
Use -- to prevent further commands passed through variables
Diffstat (limited to 'src')
-rwxr-xr-xsrc/git-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git-run b/src/git-run
index 6d541d0..ec27989 100755
--- a/src/git-run
+++ b/src/git-run
@@ -84,4 +84,4 @@ begin
emit log ALLOW ok "argv=$argv"
end &>>$_LOG
-exec /usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'"
+exec /usr/bin/sudo -n -u git /usr/bin/git-shell -c -- "$gitCommand '$repoDir'"