From cea00e6bb7e8ddb040e16d6ca2223e44271f95c4 Mon Sep 17 00:00:00 2001 From: franv Date: Thu, 13 Aug 2020 11:56:57 -0700 Subject: [PATCH] first commit --- docker-compose.yml | 48 +++++ gitea/git/.gitconfig | 8 + .../repositories/fossilfranv/gitea.git/HEAD | 1 + .../repositories/fossilfranv/gitea.git/config | 4 + .../fossilfranv/gitea.git/description | 1 + .../gitea.git/hooks/applypatch-msg.sample | 15 ++ .../gitea.git/hooks/commit-msg.sample | 24 +++ .../fossilfranv/gitea.git/hooks/post-receive | 15 ++ .../gitea.git/hooks/post-receive.d/gitea | 2 + .../gitea.git/hooks/post-update.sample | 8 + .../gitea.git/hooks/pre-applypatch.sample | 14 ++ .../gitea.git/hooks/pre-commit.sample | 49 +++++ .../gitea.git/hooks/pre-merge-commit.sample | 13 ++ .../gitea.git/hooks/pre-push.sample | 53 ++++++ .../gitea.git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../fossilfranv/gitea.git/hooks/pre-receive | 15 ++ .../gitea.git/hooks/pre-receive.d/gitea | 2 + .../gitea.git/hooks/pre-receive.sample | 24 +++ .../gitea.git/hooks/prepare-commit-msg.sample | 42 +++++ .../fossilfranv/gitea.git/hooks/update | 14 ++ .../gitea.git/hooks/update.d/gitea | 2 + .../fossilfranv/gitea.git/hooks/update.sample | 128 +++++++++++++ .../fossilfranv/gitea.git/info/exclude | 6 + .../fossilfranv/gitea.git/info/refs | 0 .../fossilfranv/gitea.git/objects/info/packs | 1 + .../repositories/fossilfranv/gittest.git/HEAD | 1 + .../fossilfranv/gittest.git/config | 4 + .../fossilfranv/gittest.git/description | 1 + .../gittest.git/hooks/applypatch-msg.sample | 15 ++ .../gittest.git/hooks/commit-msg.sample | 24 +++ .../gittest.git/hooks/post-receive | 15 ++ .../gittest.git/hooks/post-receive.d/gitea | 2 + .../gittest.git/hooks/post-update.sample | 8 + .../gittest.git/hooks/pre-applypatch.sample | 14 ++ .../gittest.git/hooks/pre-commit.sample | 49 +++++ .../gittest.git/hooks/pre-merge-commit.sample | 13 ++ .../gittest.git/hooks/pre-push.sample | 53 ++++++ .../gittest.git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../fossilfranv/gittest.git/hooks/pre-receive | 15 ++ .../gittest.git/hooks/pre-receive.d/gitea | 2 + .../gittest.git/hooks/pre-receive.sample | 24 +++ .../hooks/prepare-commit-msg.sample | 42 +++++ .../fossilfranv/gittest.git/hooks/update | 14 ++ .../gittest.git/hooks/update.d/gitea | 2 + .../gittest.git/hooks/update.sample | 128 +++++++++++++ .../fossilfranv/gittest.git/info/exclude | 6 + .../fossilfranv/gittest.git/info/refs | 1 + .../07/4d33f6f5651e2961b5ed577817ed0440835803 | 2 + .../5e/fb9bc29c482e023e40e0a2b3b7e49cec842034 | Bin 0 -> 53 bytes .../e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 | Bin 0 -> 15 bytes .../gittest.git/objects/info/packs | 1 + .../fossilfranv/gittest.git/refs/heads/master | 1 + .../fossilfranv/nextcloud.git/HEAD | 1 + .../fossilfranv/nextcloud.git/config | 4 + .../fossilfranv/nextcloud.git/description | 1 + .../nextcloud.git/hooks/applypatch-msg.sample | 15 ++ .../nextcloud.git/hooks/commit-msg.sample | 24 +++ .../nextcloud.git/hooks/post-receive | 15 ++ .../nextcloud.git/hooks/post-receive.d/gitea | 2 + .../nextcloud.git/hooks/post-update.sample | 8 + .../nextcloud.git/hooks/pre-applypatch.sample | 14 ++ .../nextcloud.git/hooks/pre-commit.sample | 49 +++++ .../hooks/pre-merge-commit.sample | 13 ++ .../nextcloud.git/hooks/pre-push.sample | 53 ++++++ .../nextcloud.git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../nextcloud.git/hooks/pre-receive | 15 ++ .../nextcloud.git/hooks/pre-receive.d/gitea | 2 + .../nextcloud.git/hooks/pre-receive.sample | 24 +++ .../hooks/prepare-commit-msg.sample | 42 +++++ .../fossilfranv/nextcloud.git/hooks/update | 14 ++ .../nextcloud.git/hooks/update.d/gitea | 2 + .../nextcloud.git/hooks/update.sample | 128 +++++++++++++ .../fossilfranv/nextcloud.git/info/exclude | 6 + .../fossilfranv/nextcloud.git/info/refs | 0 .../nextcloud.git/objects/info/packs | 1 + .../fossilfranv/rocketchat.git/HEAD | 1 + .../fossilfranv/rocketchat.git/config | 4 + .../fossilfranv/rocketchat.git/description | 1 + .../hooks/applypatch-msg.sample | 15 ++ .../rocketchat.git/hooks/commit-msg.sample | 24 +++ .../rocketchat.git/hooks/post-receive | 15 ++ .../rocketchat.git/hooks/post-receive.d/gitea | 2 + .../rocketchat.git/hooks/post-update.sample | 8 + .../hooks/pre-applypatch.sample | 14 ++ .../rocketchat.git/hooks/pre-commit.sample | 49 +++++ .../hooks/pre-merge-commit.sample | 13 ++ .../rocketchat.git/hooks/pre-push.sample | 53 ++++++ .../rocketchat.git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../rocketchat.git/hooks/pre-receive | 15 ++ .../rocketchat.git/hooks/pre-receive.d/gitea | 2 + .../rocketchat.git/hooks/pre-receive.sample | 24 +++ .../hooks/prepare-commit-msg.sample | 42 +++++ .../fossilfranv/rocketchat.git/hooks/update | 14 ++ .../rocketchat.git/hooks/update.d/gitea | 2 + .../rocketchat.git/hooks/update.sample | 128 +++++++++++++ .../fossilfranv/rocketchat.git/info/exclude | 6 + .../fossilfranv/rocketchat.git/info/refs | 0 .../rocketchat.git/objects/info/packs | 1 + .../fossilfranv/wallabag.git/HEAD | 1 + .../fossilfranv/wallabag.git/config | 4 + .../fossilfranv/wallabag.git/description | 1 + .../wallabag.git/hooks/applypatch-msg.sample | 15 ++ .../wallabag.git/hooks/commit-msg.sample | 24 +++ .../wallabag.git/hooks/post-receive | 15 ++ .../wallabag.git/hooks/post-receive.d/gitea | 2 + .../wallabag.git/hooks/post-update.sample | 8 + .../wallabag.git/hooks/pre-applypatch.sample | 14 ++ .../wallabag.git/hooks/pre-commit.sample | 49 +++++ .../hooks/pre-merge-commit.sample | 13 ++ .../wallabag.git/hooks/pre-push.sample | 53 ++++++ .../wallabag.git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../wallabag.git/hooks/pre-receive | 15 ++ .../wallabag.git/hooks/pre-receive.d/gitea | 2 + .../wallabag.git/hooks/pre-receive.sample | 24 +++ .../hooks/prepare-commit-msg.sample | 42 +++++ .../fossilfranv/wallabag.git/hooks/update | 14 ++ .../wallabag.git/hooks/update.d/gitea | 2 + .../wallabag.git/hooks/update.sample | 128 +++++++++++++ .../fossilfranv/wallabag.git/info/exclude | 6 + .../fossilfranv/wallabag.git/info/refs | 0 .../wallabag.git/objects/info/packs | 1 + .../fossilfranv/zabbix-docker.git/HEAD | 1 + .../fossilfranv/zabbix-docker.git/config | 4 + .../fossilfranv/zabbix-docker.git/description | 1 + .../hooks/applypatch-msg.sample | 15 ++ .../zabbix-docker.git/hooks/commit-msg.sample | 24 +++ .../zabbix-docker.git/hooks/post-receive | 15 ++ .../hooks/post-receive.d/gitea | 2 + .../hooks/post-update.sample | 8 + .../hooks/pre-applypatch.sample | 14 ++ .../zabbix-docker.git/hooks/pre-commit.sample | 49 +++++ .../hooks/pre-merge-commit.sample | 13 ++ .../zabbix-docker.git/hooks/pre-push.sample | 53 ++++++ .../zabbix-docker.git/hooks/pre-rebase.sample | 169 ++++++++++++++++++ .../zabbix-docker.git/hooks/pre-receive | 15 ++ .../hooks/pre-receive.d/gitea | 2 + .../hooks/pre-receive.sample | 24 +++ .../hooks/prepare-commit-msg.sample | 42 +++++ .../zabbix-docker.git/hooks/update | 14 ++ .../zabbix-docker.git/hooks/update.d/gitea | 2 + .../zabbix-docker.git/hooks/update.sample | 128 +++++++++++++ .../zabbix-docker.git/info/exclude | 6 + .../fossilfranv/zabbix-docker.git/info/refs | 0 .../zabbix-docker.git/objects/info/packs | 1 + gitea/gitea/conf/app.ini | 86 +++++++++ gitea/gitea/indexers/issues.queue/000002.ldb | Bin 0 -> 127 bytes gitea/gitea/indexers/issues.queue/000003.log | 0 gitea/gitea/indexers/issues.queue/CURRENT | 1 + gitea/gitea/indexers/issues.queue/CURRENT.bak | 1 + gitea/gitea/indexers/issues.queue/LOCK | 0 gitea/gitea/indexers/issues.queue/LOG | 16 ++ .../indexers/issues.queue/MANIFEST-000004 | Bin 0 -> 99 bytes .../queues/notification-service/000002.ldb | Bin 0 -> 127 bytes .../queues/notification-service/000003.log | 0 .../gitea/queues/notification-service/CURRENT | 1 + .../queues/notification-service/CURRENT.bak | 1 + gitea/gitea/queues/notification-service/LOCK | 0 gitea/gitea/queues/notification-service/LOG | 16 ++ .../notification-service/MANIFEST-000004 | Bin 0 -> 99 bytes .../gitea/queues/pr_patch_checker/000002.ldb | Bin 0 -> 127 bytes .../gitea/queues/pr_patch_checker/000003.log | 0 gitea/gitea/queues/pr_patch_checker/CURRENT | 1 + .../gitea/queues/pr_patch_checker/CURRENT.bak | 1 + gitea/gitea/queues/pr_patch_checker/LOCK | 0 gitea/gitea/queues/pr_patch_checker/LOG | 16 ++ .../queues/pr_patch_checker/MANIFEST-000004 | Bin 0 -> 99 bytes .../gitea/queues/repo_stats_update/000002.ldb | Bin 0 -> 127 bytes .../gitea/queues/repo_stats_update/000003.log | 0 gitea/gitea/queues/repo_stats_update/CURRENT | 1 + .../queues/repo_stats_update/CURRENT.bak | 1 + gitea/gitea/queues/repo_stats_update/LOCK | 0 gitea/gitea/queues/repo_stats_update/LOG | 16 ++ .../queues/repo_stats_update/MANIFEST-000004 | Bin 0 -> 99 bytes gitea/gitea/queues/task/000002.ldb | Bin 0 -> 127 bytes gitea/gitea/queues/task/000003.log | 0 gitea/gitea/queues/task/CURRENT | 1 + gitea/gitea/queues/task/CURRENT.bak | 1 + gitea/gitea/queues/task/LOCK | 0 gitea/gitea/queues/task/LOG | 16 ++ gitea/gitea/queues/task/MANIFEST-000004 | Bin 0 -> 99 bytes 180 files changed, 3848 insertions(+) create mode 100644 docker-compose.yml create mode 100644 gitea/git/.gitconfig create mode 100644 gitea/git/repositories/fossilfranv/gitea.git/HEAD create mode 100644 gitea/git/repositories/fossilfranv/gitea.git/config create mode 100644 gitea/git/repositories/fossilfranv/gitea.git/description create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/applypatch-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/post-update.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-applypatch.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-merge-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-push.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-rebase.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/prepare-commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/update create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/update.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/gitea.git/hooks/update.sample create mode 100644 gitea/git/repositories/fossilfranv/gitea.git/info/exclude create mode 100644 gitea/git/repositories/fossilfranv/gitea.git/info/refs create mode 100644 gitea/git/repositories/fossilfranv/gitea.git/objects/info/packs create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/HEAD create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/config create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/description create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/applypatch-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/post-update.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-applypatch.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-merge-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-push.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-rebase.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/prepare-commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/update create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/update.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/gittest.git/hooks/update.sample create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/info/exclude create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/info/refs create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/objects/07/4d33f6f5651e2961b5ed577817ed0440835803 create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/objects/5e/fb9bc29c482e023e40e0a2b3b7e49cec842034 create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/objects/info/packs create mode 100644 gitea/git/repositories/fossilfranv/gittest.git/refs/heads/master create mode 100644 gitea/git/repositories/fossilfranv/nextcloud.git/HEAD create mode 100644 gitea/git/repositories/fossilfranv/nextcloud.git/config create mode 100644 gitea/git/repositories/fossilfranv/nextcloud.git/description create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/applypatch-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-update.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-applypatch.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-merge-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-push.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-rebase.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/prepare-commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.sample create mode 100644 gitea/git/repositories/fossilfranv/nextcloud.git/info/exclude create mode 100644 gitea/git/repositories/fossilfranv/nextcloud.git/info/refs create mode 100644 gitea/git/repositories/fossilfranv/nextcloud.git/objects/info/packs create mode 100644 gitea/git/repositories/fossilfranv/rocketchat.git/HEAD create mode 100644 gitea/git/repositories/fossilfranv/rocketchat.git/config create mode 100644 gitea/git/repositories/fossilfranv/rocketchat.git/description create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/applypatch-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-update.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-applypatch.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-merge-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-push.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-rebase.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/prepare-commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.sample create mode 100644 gitea/git/repositories/fossilfranv/rocketchat.git/info/exclude create mode 100644 gitea/git/repositories/fossilfranv/rocketchat.git/info/refs create mode 100644 gitea/git/repositories/fossilfranv/rocketchat.git/objects/info/packs create mode 100644 gitea/git/repositories/fossilfranv/wallabag.git/HEAD create mode 100644 gitea/git/repositories/fossilfranv/wallabag.git/config create mode 100644 gitea/git/repositories/fossilfranv/wallabag.git/description create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/applypatch-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-update.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-applypatch.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-merge-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-push.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-rebase.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/prepare-commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/update create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.sample create mode 100644 gitea/git/repositories/fossilfranv/wallabag.git/info/exclude create mode 100644 gitea/git/repositories/fossilfranv/wallabag.git/info/refs create mode 100644 gitea/git/repositories/fossilfranv/wallabag.git/objects/info/packs create mode 100644 gitea/git/repositories/fossilfranv/zabbix-docker.git/HEAD create mode 100644 gitea/git/repositories/fossilfranv/zabbix-docker.git/config create mode 100644 gitea/git/repositories/fossilfranv/zabbix-docker.git/description create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/applypatch-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-update.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-applypatch.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-merge-commit.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-push.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-rebase.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/prepare-commit-msg.sample create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.d/gitea create mode 100755 gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.sample create mode 100644 gitea/git/repositories/fossilfranv/zabbix-docker.git/info/exclude create mode 100644 gitea/git/repositories/fossilfranv/zabbix-docker.git/info/refs create mode 100644 gitea/git/repositories/fossilfranv/zabbix-docker.git/objects/info/packs create mode 100644 gitea/gitea/conf/app.ini create mode 100644 gitea/gitea/indexers/issues.queue/000002.ldb create mode 100644 gitea/gitea/indexers/issues.queue/000003.log create mode 100644 gitea/gitea/indexers/issues.queue/CURRENT create mode 100644 gitea/gitea/indexers/issues.queue/CURRENT.bak create mode 100644 gitea/gitea/indexers/issues.queue/LOCK create mode 100644 gitea/gitea/indexers/issues.queue/LOG create mode 100644 gitea/gitea/indexers/issues.queue/MANIFEST-000004 create mode 100644 gitea/gitea/queues/notification-service/000002.ldb create mode 100644 gitea/gitea/queues/notification-service/000003.log create mode 100644 gitea/gitea/queues/notification-service/CURRENT create mode 100644 gitea/gitea/queues/notification-service/CURRENT.bak create mode 100644 gitea/gitea/queues/notification-service/LOCK create mode 100644 gitea/gitea/queues/notification-service/LOG create mode 100644 gitea/gitea/queues/notification-service/MANIFEST-000004 create mode 100644 gitea/gitea/queues/pr_patch_checker/000002.ldb create mode 100644 gitea/gitea/queues/pr_patch_checker/000003.log create mode 100644 gitea/gitea/queues/pr_patch_checker/CURRENT create mode 100644 gitea/gitea/queues/pr_patch_checker/CURRENT.bak create mode 100644 gitea/gitea/queues/pr_patch_checker/LOCK create mode 100644 gitea/gitea/queues/pr_patch_checker/LOG create mode 100644 gitea/gitea/queues/pr_patch_checker/MANIFEST-000004 create mode 100644 gitea/gitea/queues/repo_stats_update/000002.ldb create mode 100644 gitea/gitea/queues/repo_stats_update/000003.log create mode 100644 gitea/gitea/queues/repo_stats_update/CURRENT create mode 100644 gitea/gitea/queues/repo_stats_update/CURRENT.bak create mode 100644 gitea/gitea/queues/repo_stats_update/LOCK create mode 100644 gitea/gitea/queues/repo_stats_update/LOG create mode 100644 gitea/gitea/queues/repo_stats_update/MANIFEST-000004 create mode 100644 gitea/gitea/queues/task/000002.ldb create mode 100644 gitea/gitea/queues/task/000003.log create mode 100644 gitea/gitea/queues/task/CURRENT create mode 100644 gitea/gitea/queues/task/CURRENT.bak create mode 100644 gitea/gitea/queues/task/LOCK create mode 100644 gitea/gitea/queues/task/LOG create mode 100644 gitea/gitea/queues/task/MANIFEST-000004 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..713bddc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,48 @@ +version: '2' + +services: + gitea: + image: gitea/gitea:latest + environment: + - USER_UID=1000 + - USER_GID=1000 + - DB_TYPE=postgres + - DB_HOST=db:5432 + - DB_NAME=gitea + - DB_USER=gitea + - DB_PASSWD=chengli197 + - VIRTUAL_HOST=git.airdog.site + - LETSENCRYPT_HOST=git.airdog.site + - LETSENCRYPT_EMAIL=ouch@thetrauma.org + - VIRTUAL_PORT=3000 + + restart: always + networks: + - default + volumes: + - ./gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: +# - "3000:3000" + - "222:22" + depends_on: + - db + + db: + image: postgres:9.6 + restart: always + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=chengli197 + - POSTGRES_DB=gitea + networks: + - default + volumes: + - ./postgres:/var/lib/postgresql/data + +networks: +# gitea: + default: + external: + name: nextcloud_proxy-tier diff --git a/gitea/git/.gitconfig b/gitea/git/.gitconfig new file mode 100644 index 0000000..91ae21f --- /dev/null +++ b/gitea/git/.gitconfig @@ -0,0 +1,8 @@ +[user] + name = Gitea + email = gitea@fake.local +[core] + quotePath = false + commitGraph = true +[gc] + writeCommitGraph = true diff --git a/gitea/git/repositories/fossilfranv/gitea.git/HEAD b/gitea/git/repositories/fossilfranv/gitea.git/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/gitea/git/repositories/fossilfranv/gitea.git/config b/gitea/git/repositories/fossilfranv/gitea.git/config new file mode 100644 index 0000000..07d359d --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/config @@ -0,0 +1,4 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true diff --git a/gitea/git/repositories/fossilfranv/gitea.git/description b/gitea/git/repositories/fossilfranv/gitea.git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/applypatch-msg.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/commit-msg.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive b/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive.d/gitea b/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000..c319ea2 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' post-receive diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-update.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-applypatch.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-commit.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-merge-commit.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-push.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-rebase.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.d/gitea b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000..a4a9867 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' pre-receive diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/prepare-commit-msg.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/update b/gitea/git/repositories/fossilfranv/gitea.git/hooks/update new file mode 100755 index 0000000..df5bd27 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/update @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/update.d/gitea b/gitea/git/repositories/fossilfranv/gitea.git/hooks/update.d/gitea new file mode 100755 index 0000000..0ecb667 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3 diff --git a/gitea/git/repositories/fossilfranv/gitea.git/hooks/update.sample b/gitea/git/repositories/fossilfranv/gitea.git/hooks/update.sample new file mode 100755 index 0000000..5014c4b --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/gitea/git/repositories/fossilfranv/gitea.git/info/exclude b/gitea/git/repositories/fossilfranv/gitea.git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/gitea/git/repositories/fossilfranv/gitea.git/info/refs b/gitea/git/repositories/fossilfranv/gitea.git/info/refs new file mode 100644 index 0000000..e69de29 diff --git a/gitea/git/repositories/fossilfranv/gitea.git/objects/info/packs b/gitea/git/repositories/fossilfranv/gitea.git/objects/info/packs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gitea.git/objects/info/packs @@ -0,0 +1 @@ + diff --git a/gitea/git/repositories/fossilfranv/gittest.git/HEAD b/gitea/git/repositories/fossilfranv/gittest.git/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/gitea/git/repositories/fossilfranv/gittest.git/config b/gitea/git/repositories/fossilfranv/gittest.git/config new file mode 100644 index 0000000..07d359d --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/config @@ -0,0 +1,4 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true diff --git a/gitea/git/repositories/fossilfranv/gittest.git/description b/gitea/git/repositories/fossilfranv/gittest.git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/applypatch-msg.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/commit-msg.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive b/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive.d/gitea b/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000..c319ea2 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' post-receive diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-update.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-applypatch.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-commit.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-merge-commit.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-push.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-rebase.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.d/gitea b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000..a4a9867 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' pre-receive diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/prepare-commit-msg.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/update b/gitea/git/repositories/fossilfranv/gittest.git/hooks/update new file mode 100755 index 0000000..df5bd27 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/update @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/update.d/gitea b/gitea/git/repositories/fossilfranv/gittest.git/hooks/update.d/gitea new file mode 100755 index 0000000..0ecb667 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3 diff --git a/gitea/git/repositories/fossilfranv/gittest.git/hooks/update.sample b/gitea/git/repositories/fossilfranv/gittest.git/hooks/update.sample new file mode 100755 index 0000000..5014c4b --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/gitea/git/repositories/fossilfranv/gittest.git/info/exclude b/gitea/git/repositories/fossilfranv/gittest.git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/gitea/git/repositories/fossilfranv/gittest.git/info/refs b/gitea/git/repositories/fossilfranv/gittest.git/info/refs new file mode 100644 index 0000000..163975c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/info/refs @@ -0,0 +1 @@ +074d33f6f5651e2961b5ed577817ed0440835803 refs/heads/master diff --git a/gitea/git/repositories/fossilfranv/gittest.git/objects/07/4d33f6f5651e2961b5ed577817ed0440835803 b/gitea/git/repositories/fossilfranv/gittest.git/objects/07/4d33f6f5651e2961b5ed577817ed0440835803 new file mode 100644 index 0000000..8ffc448 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/gittest.git/objects/07/4d33f6f5651e2961b5ed577817ed0440835803 @@ -0,0 +1,2 @@ +xA +1 @Q=E.d WICj^|;} X$bC[7j&]Qs/.ܪ$}0>pU^LWXr+,R1O6?>-7 \ No newline at end of file diff --git a/gitea/git/repositories/fossilfranv/gittest.git/objects/5e/fb9bc29c482e023e40e0a2b3b7e49cec842034 b/gitea/git/repositories/fossilfranv/gittest.git/objects/5e/fb9bc29c482e023e40e0a2b3b7e49cec842034 new file mode 100644 index 0000000000000000000000000000000000000000..d615c02a6b36669ca11cf0c4d92dde442130dcbc GIT binary patch literal 53 zcmb8#W%j<>n*Fxv)5_&?<#!Z>Hoon JAu&woJ^;~d6Yu~4 literal 0 HcmV?d00001 diff --git a/gitea/git/repositories/fossilfranv/gittest.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/gitea/git/repositories/fossilfranv/gittest.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 new file mode 100644 index 0000000000000000000000000000000000000000..711223894375fe1186ac5bfffdc48fb1fa1e65cc GIT binary patch literal 15 Wcmb\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive.d/gitea b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000..c319ea2 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' post-receive diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-update.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-applypatch.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-commit.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-merge-commit.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-push.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-rebase.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.d/gitea b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000..a4a9867 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' pre-receive diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/prepare-commit-msg.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update new file mode 100755 index 0000000..df5bd27 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.d/gitea b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.d/gitea new file mode 100755 index 0000000..0ecb667 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3 diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.sample b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.sample new file mode 100755 index 0000000..5014c4b --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/info/exclude b/gitea/git/repositories/fossilfranv/nextcloud.git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/info/refs b/gitea/git/repositories/fossilfranv/nextcloud.git/info/refs new file mode 100644 index 0000000..e69de29 diff --git a/gitea/git/repositories/fossilfranv/nextcloud.git/objects/info/packs b/gitea/git/repositories/fossilfranv/nextcloud.git/objects/info/packs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/nextcloud.git/objects/info/packs @@ -0,0 +1 @@ + diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/HEAD b/gitea/git/repositories/fossilfranv/rocketchat.git/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/config b/gitea/git/repositories/fossilfranv/rocketchat.git/config new file mode 100644 index 0000000..07d359d --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/config @@ -0,0 +1,4 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/description b/gitea/git/repositories/fossilfranv/rocketchat.git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/applypatch-msg.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/commit-msg.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive.d/gitea b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000..c319ea2 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' post-receive diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-update.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-applypatch.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-commit.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-merge-commit.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-push.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-rebase.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.d/gitea b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000..a4a9867 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' pre-receive diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/prepare-commit-msg.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update new file mode 100755 index 0000000..df5bd27 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.d/gitea b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.d/gitea new file mode 100755 index 0000000..0ecb667 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3 diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.sample b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.sample new file mode 100755 index 0000000..5014c4b --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/info/exclude b/gitea/git/repositories/fossilfranv/rocketchat.git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/info/refs b/gitea/git/repositories/fossilfranv/rocketchat.git/info/refs new file mode 100644 index 0000000..e69de29 diff --git a/gitea/git/repositories/fossilfranv/rocketchat.git/objects/info/packs b/gitea/git/repositories/fossilfranv/rocketchat.git/objects/info/packs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/rocketchat.git/objects/info/packs @@ -0,0 +1 @@ + diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/HEAD b/gitea/git/repositories/fossilfranv/wallabag.git/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/config b/gitea/git/repositories/fossilfranv/wallabag.git/config new file mode 100644 index 0000000..07d359d --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/config @@ -0,0 +1,4 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/description b/gitea/git/repositories/fossilfranv/wallabag.git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/applypatch-msg.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/commit-msg.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive.d/gitea b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000..c319ea2 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' post-receive diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-update.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-applypatch.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-commit.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-merge-commit.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-push.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-rebase.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.d/gitea b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000..a4a9867 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' pre-receive diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/prepare-commit-msg.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update new file mode 100755 index 0000000..df5bd27 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.d/gitea b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.d/gitea new file mode 100755 index 0000000..0ecb667 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3 diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.sample b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.sample new file mode 100755 index 0000000..5014c4b --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/info/exclude b/gitea/git/repositories/fossilfranv/wallabag.git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/info/refs b/gitea/git/repositories/fossilfranv/wallabag.git/info/refs new file mode 100644 index 0000000..e69de29 diff --git a/gitea/git/repositories/fossilfranv/wallabag.git/objects/info/packs b/gitea/git/repositories/fossilfranv/wallabag.git/objects/info/packs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/wallabag.git/objects/info/packs @@ -0,0 +1 @@ + diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/HEAD b/gitea/git/repositories/fossilfranv/zabbix-docker.git/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/config b/gitea/git/repositories/fossilfranv/zabbix-docker.git/config new file mode 100644 index 0000000..07d359d --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/config @@ -0,0 +1,4 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/description b/gitea/git/repositories/fossilfranv/zabbix-docker.git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/applypatch-msg.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/commit-msg.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive.d/gitea b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive.d/gitea new file mode 100755 index 0000000..c319ea2 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' post-receive diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-update.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-applypatch.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-commit.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-merge-commit.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-push.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-push.sample new file mode 100755 index 0000000..6187dbf --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-rebase.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive new file mode 100755 index 0000000..f1f2709 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +data=$(cat) +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +echo "${data}" | "${hook}" +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.d/gitea b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.d/gitea new file mode 100755 index 0000000..a4a9867 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' pre-receive diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/prepare-commit-msg.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update new file mode 100755 index 0000000..df5bd27 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +exitcodes="" +hookname=$(basename $0) +GIT_DIR=${GIT_DIR:-$(dirname $0)} + +for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do +test -x "${hook}" && test -f "${hook}" || continue +"${hook}" $1 $2 $3 +exitcodes="${exitcodes} $?" +done + +for i in ${exitcodes}; do +[ ${i} -eq 0 ] || exit ${i} +done diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.d/gitea b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.d/gitea new file mode 100755 index 0000000..0ecb667 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.d/gitea @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +"/app/gitea/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3 diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.sample b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.sample new file mode 100755 index 0000000..5014c4b --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/info/exclude b/gitea/git/repositories/fossilfranv/zabbix-docker.git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/info/refs b/gitea/git/repositories/fossilfranv/zabbix-docker.git/info/refs new file mode 100644 index 0000000..e69de29 diff --git a/gitea/git/repositories/fossilfranv/zabbix-docker.git/objects/info/packs b/gitea/git/repositories/fossilfranv/zabbix-docker.git/objects/info/packs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/gitea/git/repositories/fossilfranv/zabbix-docker.git/objects/info/packs @@ -0,0 +1 @@ + diff --git a/gitea/gitea/conf/app.ini b/gitea/gitea/conf/app.ini new file mode 100644 index 0000000..ed0dc6e --- /dev/null +++ b/gitea/gitea/conf/app.ini @@ -0,0 +1,86 @@ +APP_NAME = Gitea: Surrey +RUN_MODE = prod +RUN_USER = git + +[repository] +ROOT = /data/git/repositories + +[repository.local] +LOCAL_COPY_PATH = /data/gitea/tmp/local-repo + +[repository.upload] +TEMP_PATH = /data/gitea/uploads + +[server] +APP_DATA_PATH = /data/gitea +DOMAIN = localhost +SSH_DOMAIN = localhost +HTTP_PORT = 3000 +ROOT_URL = https://git.airdog.site/ +DISABLE_SSH = false +SSH_PORT = 22 +SSH_LISTEN_PORT = 22 +LFS_START_SERVER = true +LFS_CONTENT_PATH = /data/git/lfs +LFS_JWT_SECRET = KDg9SJOAr3fnmQb_BjA9HADkdhYuaNDu0e5tRjf20R0 +OFFLINE_MODE = false + +[database] +PATH = /data/gitea/gitea.db +DB_TYPE = postgres +HOST = db:5432 +NAME = gitea +USER = gitea +PASSWD = chengli197 +SCHEMA = +SSL_MODE = disable +CHARSET = utf8 + +[indexer] +ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve + +[session] +PROVIDER_CONFIG = /data/gitea/sessions +PROVIDER = file + +[picture] +AVATAR_UPLOAD_PATH = /data/gitea/avatars +REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars +DISABLE_GRAVATAR = false +ENABLE_FEDERATED_AVATAR = true + +[attachment] +PATH = /data/gitea/attachments + +[log] +ROOT_PATH = /data/gitea/log +MODE = file +LEVEL = info + +[security] +INSTALL_LOCK = true +SECRET_KEY = AAgva9QRP4VrLFlWkx7wFoPXt4wSTHng0u400zE81F5zopIJ3J0hj7oFaeMHc3j8 +INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1OTczMzcwNjV9.Y0qfv2ybL9o_MjJ9Nzo1RpA7NLukm6a2xI4JapMUo-k + +[service] +DISABLE_REGISTRATION = false +REQUIRE_SIGNIN_VIEW = false +REGISTER_EMAIL_CONFIRM = false +ENABLE_NOTIFY_MAIL = false +ALLOW_ONLY_EXTERNAL_REGISTRATION = false +ENABLE_CAPTCHA = false +DEFAULT_KEEP_EMAIL_PRIVATE = false +DEFAULT_ALLOW_CREATE_ORGANIZATION = true +DEFAULT_ENABLE_TIMETRACKING = true +NO_REPLY_ADDRESS = noreply.localhost + +[oauth2] +JWT_SECRET = jG_TApvWguvUQ_nn0616Sp4hJZDDHv8uCqmk-r_Iau4 + +[mailer] +ENABLED = false + +[openid] +ENABLE_OPENID_SIGNIN = true +ENABLE_OPENID_SIGNUP = true + diff --git a/gitea/gitea/indexers/issues.queue/000002.ldb b/gitea/gitea/indexers/issues.queue/000002.ldb new file mode 100644 index 0000000000000000000000000000000000000000..b277bdf392c67f09cce130a24b6263c2e89ee001 GIT binary patch literal 127 zcmXq2Vc_A&$V|^*WMVL5WRT$I$jL8fWaJdplV#vxWME)moE5*qi9-g+VgPg5Oy*Az n6Jg+F%4Ph|$*97h2$zvB@bFaQG8F|05CY-98@g3W-ERW`?{5!P literal 0 HcmV?d00001 diff --git a/gitea/gitea/indexers/issues.queue/000003.log b/gitea/gitea/indexers/issues.queue/000003.log new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/indexers/issues.queue/CURRENT b/gitea/gitea/indexers/issues.queue/CURRENT new file mode 100644 index 0000000..cacca75 --- /dev/null +++ b/gitea/gitea/indexers/issues.queue/CURRENT @@ -0,0 +1 @@ +MANIFEST-000004 diff --git a/gitea/gitea/indexers/issues.queue/CURRENT.bak b/gitea/gitea/indexers/issues.queue/CURRENT.bak new file mode 100644 index 0000000..feda7d6 --- /dev/null +++ b/gitea/gitea/indexers/issues.queue/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000000 diff --git a/gitea/gitea/indexers/issues.queue/LOCK b/gitea/gitea/indexers/issues.queue/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/indexers/issues.queue/LOG b/gitea/gitea/indexers/issues.queue/LOG new file mode 100644 index 0000000..864d8fb --- /dev/null +++ b/gitea/gitea/indexers/issues.queue/LOG @@ -0,0 +1,16 @@ +=============== Aug 13, 2020 (PDT) =============== +09:48:07.870097 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:07.873441 db@open opening +09:48:07.874019 version@stat F·[] S·0B[] Sc·[] +09:48:07.894661 db@janitor F·2 G·0 +09:48:07.894701 db@open done T·21.240017ms +=============== Aug 13, 2020 (PDT) =============== +09:48:56.041870 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:56.042149 version@stat F·[] S·0B[] Sc·[] +09:48:56.042163 db@open opening +09:48:56.042220 journal@recovery F·1 +09:48:56.042460 journal@recovery recovering @1 +09:48:56.060017 memdb@flush created L0@2 N·2 S·127B "high,v2":"low,v1" +09:48:56.060325 version@stat F·[1] S·127B[127B] Sc·[0.25] +09:48:56.063994 db@janitor F·3 G·0 +09:48:56.064022 db@open done T·21.851506ms diff --git a/gitea/gitea/indexers/issues.queue/MANIFEST-000004 b/gitea/gitea/indexers/issues.queue/MANIFEST-000004 new file mode 100644 index 0000000000000000000000000000000000000000..746a449b81f23550fb13b738562423cf106c1ba8 GIT binary patch literal 99 zcmcDHnSUULfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zle#MnU#f^oq?&ICnGaG TgOP~=47hXh%NZFVY`l^H0jU%p literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/notification-service/000002.ldb b/gitea/gitea/queues/notification-service/000002.ldb new file mode 100644 index 0000000000000000000000000000000000000000..b277bdf392c67f09cce130a24b6263c2e89ee001 GIT binary patch literal 127 zcmXq2Vc_A&$V|^*WMVL5WRT$I$jL8fWaJdplV#vxWME)moE5*qi9-g+VgPg5Oy*Az n6Jg+F%4Ph|$*97h2$zvB@bFaQG8F|05CY-98@g3W-ERW`?{5!P literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/notification-service/000003.log b/gitea/gitea/queues/notification-service/000003.log new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/notification-service/CURRENT b/gitea/gitea/queues/notification-service/CURRENT new file mode 100644 index 0000000..cacca75 --- /dev/null +++ b/gitea/gitea/queues/notification-service/CURRENT @@ -0,0 +1 @@ +MANIFEST-000004 diff --git a/gitea/gitea/queues/notification-service/CURRENT.bak b/gitea/gitea/queues/notification-service/CURRENT.bak new file mode 100644 index 0000000..feda7d6 --- /dev/null +++ b/gitea/gitea/queues/notification-service/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000000 diff --git a/gitea/gitea/queues/notification-service/LOCK b/gitea/gitea/queues/notification-service/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/notification-service/LOG b/gitea/gitea/queues/notification-service/LOG new file mode 100644 index 0000000..5242229 --- /dev/null +++ b/gitea/gitea/queues/notification-service/LOG @@ -0,0 +1,16 @@ +=============== Aug 13, 2020 (PDT) =============== +09:44:25.901798 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:44:25.903712 db@open opening +09:44:25.904396 version@stat F·[] S·0B[] Sc·[] +09:44:25.905003 db@janitor F·2 G·0 +09:44:25.905049 db@open done T·1.318239ms +=============== Aug 13, 2020 (PDT) =============== +09:48:55.367229 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:55.367483 version@stat F·[] S·0B[] Sc·[] +09:48:55.367498 db@open opening +09:48:55.367562 journal@recovery F·1 +09:48:55.367781 journal@recovery recovering @1 +09:48:55.375760 memdb@flush created L0@2 N·2 S·127B "high,v2":"low,v1" +09:48:55.376005 version@stat F·[1] S·127B[127B] Sc·[0.25] +09:48:55.377849 db@janitor F·3 G·0 +09:48:55.377892 db@open done T·10.386014ms diff --git a/gitea/gitea/queues/notification-service/MANIFEST-000004 b/gitea/gitea/queues/notification-service/MANIFEST-000004 new file mode 100644 index 0000000000000000000000000000000000000000..746a449b81f23550fb13b738562423cf106c1ba8 GIT binary patch literal 99 zcmcDHnSUULfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zle#MnU#f^oq?&ICnGaG TgOP~=47hXh%NZFVY`l^H0jU%p literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/pr_patch_checker/000002.ldb b/gitea/gitea/queues/pr_patch_checker/000002.ldb new file mode 100644 index 0000000000000000000000000000000000000000..b277bdf392c67f09cce130a24b6263c2e89ee001 GIT binary patch literal 127 zcmXq2Vc_A&$V|^*WMVL5WRT$I$jL8fWaJdplV#vxWME)moE5*qi9-g+VgPg5Oy*Az n6Jg+F%4Ph|$*97h2$zvB@bFaQG8F|05CY-98@g3W-ERW`?{5!P literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/pr_patch_checker/000003.log b/gitea/gitea/queues/pr_patch_checker/000003.log new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/pr_patch_checker/CURRENT b/gitea/gitea/queues/pr_patch_checker/CURRENT new file mode 100644 index 0000000..cacca75 --- /dev/null +++ b/gitea/gitea/queues/pr_patch_checker/CURRENT @@ -0,0 +1 @@ +MANIFEST-000004 diff --git a/gitea/gitea/queues/pr_patch_checker/CURRENT.bak b/gitea/gitea/queues/pr_patch_checker/CURRENT.bak new file mode 100644 index 0000000..feda7d6 --- /dev/null +++ b/gitea/gitea/queues/pr_patch_checker/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000000 diff --git a/gitea/gitea/queues/pr_patch_checker/LOCK b/gitea/gitea/queues/pr_patch_checker/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/pr_patch_checker/LOG b/gitea/gitea/queues/pr_patch_checker/LOG new file mode 100644 index 0000000..29f7884 --- /dev/null +++ b/gitea/gitea/queues/pr_patch_checker/LOG @@ -0,0 +1,16 @@ +=============== Aug 13, 2020 (PDT) =============== +09:48:07.913613 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:07.916090 db@open opening +09:48:07.916502 version@stat F·[] S·0B[] Sc·[] +09:48:07.917417 db@janitor F·2 G·0 +09:48:07.917440 db@open done T·1.335571ms +=============== Aug 13, 2020 (PDT) =============== +09:48:56.310511 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:56.310748 version@stat F·[] S·0B[] Sc·[] +09:48:56.310761 db@open opening +09:48:56.310819 journal@recovery F·1 +09:48:56.314261 journal@recovery recovering @1 +09:48:56.381000 memdb@flush created L0@2 N·2 S·127B "high,v2":"low,v1" +09:48:56.383389 version@stat F·[1] S·127B[127B] Sc·[0.25] +09:48:56.555054 db@janitor F·3 G·0 +09:48:56.555090 db@open done T·244.321074ms diff --git a/gitea/gitea/queues/pr_patch_checker/MANIFEST-000004 b/gitea/gitea/queues/pr_patch_checker/MANIFEST-000004 new file mode 100644 index 0000000000000000000000000000000000000000..746a449b81f23550fb13b738562423cf106c1ba8 GIT binary patch literal 99 zcmcDHnSUULfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zle#MnU#f^oq?&ICnGaG TgOP~=47hXh%NZFVY`l^H0jU%p literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/repo_stats_update/000002.ldb b/gitea/gitea/queues/repo_stats_update/000002.ldb new file mode 100644 index 0000000000000000000000000000000000000000..b277bdf392c67f09cce130a24b6263c2e89ee001 GIT binary patch literal 127 zcmXq2Vc_A&$V|^*WMVL5WRT$I$jL8fWaJdplV#vxWME)moE5*qi9-g+VgPg5Oy*Az n6Jg+F%4Ph|$*97h2$zvB@bFaQG8F|05CY-98@g3W-ERW`?{5!P literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/repo_stats_update/000003.log b/gitea/gitea/queues/repo_stats_update/000003.log new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/repo_stats_update/CURRENT b/gitea/gitea/queues/repo_stats_update/CURRENT new file mode 100644 index 0000000..cacca75 --- /dev/null +++ b/gitea/gitea/queues/repo_stats_update/CURRENT @@ -0,0 +1 @@ +MANIFEST-000004 diff --git a/gitea/gitea/queues/repo_stats_update/CURRENT.bak b/gitea/gitea/queues/repo_stats_update/CURRENT.bak new file mode 100644 index 0000000..feda7d6 --- /dev/null +++ b/gitea/gitea/queues/repo_stats_update/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000000 diff --git a/gitea/gitea/queues/repo_stats_update/LOCK b/gitea/gitea/queues/repo_stats_update/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/repo_stats_update/LOG b/gitea/gitea/queues/repo_stats_update/LOG new file mode 100644 index 0000000..1ed3b25 --- /dev/null +++ b/gitea/gitea/queues/repo_stats_update/LOG @@ -0,0 +1,16 @@ +=============== Aug 13, 2020 (PDT) =============== +09:48:07.895418 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:07.897294 db@open opening +09:48:07.897646 version@stat F·[] S·0B[] Sc·[] +09:48:07.912970 db@janitor F·2 G·0 +09:48:07.913021 db@open done T·15.699954ms +=============== Aug 13, 2020 (PDT) =============== +09:48:56.064385 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:56.064569 version@stat F·[] S·0B[] Sc·[] +09:48:56.064580 db@open opening +09:48:56.064647 journal@recovery F·1 +09:48:56.064833 journal@recovery recovering @1 +09:48:56.067408 memdb@flush created L0@2 N·2 S·127B "high,v2":"low,v1" +09:48:56.273006 version@stat F·[1] S·127B[127B] Sc·[0.25] +09:48:56.310041 db@janitor F·3 G·0 +09:48:56.310081 db@open done T·245.493211ms diff --git a/gitea/gitea/queues/repo_stats_update/MANIFEST-000004 b/gitea/gitea/queues/repo_stats_update/MANIFEST-000004 new file mode 100644 index 0000000000000000000000000000000000000000..746a449b81f23550fb13b738562423cf106c1ba8 GIT binary patch literal 99 zcmcDHnSUULfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zle#MnU#f^oq?&ICnGaG TgOP~=47hXh%NZFVY`l^H0jU%p literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/task/000002.ldb b/gitea/gitea/queues/task/000002.ldb new file mode 100644 index 0000000000000000000000000000000000000000..b277bdf392c67f09cce130a24b6263c2e89ee001 GIT binary patch literal 127 zcmXq2Vc_A&$V|^*WMVL5WRT$I$jL8fWaJdplV#vxWME)moE5*qi9-g+VgPg5Oy*Az n6Jg+F%4Ph|$*97h2$zvB@bFaQG8F|05CY-98@g3W-ERW`?{5!P literal 0 HcmV?d00001 diff --git a/gitea/gitea/queues/task/000003.log b/gitea/gitea/queues/task/000003.log new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/task/CURRENT b/gitea/gitea/queues/task/CURRENT new file mode 100644 index 0000000..cacca75 --- /dev/null +++ b/gitea/gitea/queues/task/CURRENT @@ -0,0 +1 @@ +MANIFEST-000004 diff --git a/gitea/gitea/queues/task/CURRENT.bak b/gitea/gitea/queues/task/CURRENT.bak new file mode 100644 index 0000000..feda7d6 --- /dev/null +++ b/gitea/gitea/queues/task/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000000 diff --git a/gitea/gitea/queues/task/LOCK b/gitea/gitea/queues/task/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/gitea/gitea/queues/task/LOG b/gitea/gitea/queues/task/LOG new file mode 100644 index 0000000..c7de3b9 --- /dev/null +++ b/gitea/gitea/queues/task/LOG @@ -0,0 +1,16 @@ +=============== Aug 13, 2020 (PDT) =============== +09:48:07.917870 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:07.919677 db@open opening +09:48:07.920009 version@stat F·[] S·0B[] Sc·[] +09:48:07.972466 db@janitor F·2 G·0 +09:48:07.972520 db@open done T·52.825303ms +=============== Aug 13, 2020 (PDT) =============== +09:48:56.555531 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +09:48:56.555660 version@stat F·[] S·0B[] Sc·[] +09:48:56.555669 db@open opening +09:48:56.555722 journal@recovery F·1 +09:48:56.558945 journal@recovery recovering @1 +09:48:56.559763 memdb@flush created L0@2 N·2 S·127B "high,v2":"low,v1" +09:48:56.560011 version@stat F·[1] S·127B[127B] Sc·[0.25] +09:48:56.577135 db@janitor F·3 G·0 +09:48:56.577177 db@open done T·21.499979ms diff --git a/gitea/gitea/queues/task/MANIFEST-000004 b/gitea/gitea/queues/task/MANIFEST-000004 new file mode 100644 index 0000000000000000000000000000000000000000..746a449b81f23550fb13b738562423cf106c1ba8 GIT binary patch literal 99 zcmcDHnSUULfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zle#MnU#f^oq?&ICnGaG TgOP~=47hXh%NZFVY`l^H0jU%p literal 0 HcmV?d00001