summaryrefslogtreecommitdiffstats
path: root/container/create-repo
diff options
context:
space:
mode:
Diffstat (limited to 'container/create-repo')
-rwxr-xr-xcontainer/create-repo13
1 files changed, 4 insertions, 9 deletions
diff --git a/container/create-repo b/container/create-repo
index 3accca8..5f80c92 100755
--- a/container/create-repo
+++ b/container/create-repo
@@ -1,14 +1,9 @@
#!/bin/sh
-# create-repo - create a bare repository the policy can talk about.
+# Create a bare repository. Nothing is installed in it: every repository reaches
+# the shared hook through core.hooksPath, so one made by hand is enforced the same.
#
-# Nothing is installed here, which is the point: every repository reaches the
-# shared hook through the global core.hooksPath in /etc/gitconfig, so a bare
-# repository you make by hand is enforced exactly like one made here.
-#
-# The policy is a read-only mount in a deployment, so this cannot grant
-# anything. It prints the line to add to your policy source; until a rule
-# reaches the new repository, 'git-authz validate' says so and every push to it
-# is refused.
+# The policy is a read-only mount, so this only prints the line to add.
+
set -eu
GIT_REPO_ROOT="${GIT_REPO_ROOT:-/var/lib/git}"