texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua-init.lua
raw| 1 | -- Global texconfig should already be available when executed with lualatex |
| 2 | local texconfig = texconfig or require('texconfig') |
| 3 | |
| 4 | -- Use restricted shell_escape with git as only command. |
| 5 | -- Add others where needed, separated with a comma (no spaces in between) |
| 6 | texconfig.shell_escape = 'p' |
| 7 | texconfig.shell_escape_commands = 'git' |