diff options
author | James Moger <james.moger@gitblit.com> | 2012-10-21 22:04:35 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-10-21 22:04:35 -0400 |
commit | 72cb19b84e87e63770391a37ea3872f963574869 (patch) | |
tree | 2b48634b92c7ccf598ee6ac68c9c2f0d95a857b8 /distrib | |
parent | 517865c182c322b47d2cdd825c50d385a3c274f0 (diff) | |
download | gitblit-72cb19b84e87e63770391a37ea3872f963574869.tar.gz gitblit-72cb19b84e87e63770391a37ea3872f963574869.zip |
Implemented optional create-on-push
If this feature is enabled then permitted users can automatically create a
repository when pushing to one that does not yet exist. Permitted users
are administrators and any user with the CREATE role.
If the pushing account is an administrator, the created repository may be
located in any folder/project space. This reposiory will inherit the server's
default access restriction and authorization control. The repository owner
will be the pushing account.
If the pushing account is a regular user with the CREATE role, the repository
can only be located in the account's personal folder (~username/myrepo.git).
This repository will be VIEW restricted and accessible by NAMED users. The
repository owner will be the pushing account.
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/gitblit.properties | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/distrib/gitblit.properties b/distrib/gitblit.properties index fe7692be..89a7c2f3 100644 --- a/distrib/gitblit.properties +++ b/distrib/gitblit.properties @@ -76,6 +76,20 @@ git.enableGitServlet = true # SINCE 0.9.0
git.onlyAccessBareRepositories = false
+# Allow an authenticated user to create a destination repository on a push if
+# the repository does not already exist.
+#
+# Administrator accounts can create a repository in any project.
+# These repositories are created with the default access restriction and authorization
+# control values. The pushing account is set as the owner.
+#
+# Non-administrator accounts with the CREATE role may create personal repositories.
+# These repositories are created as VIEW restricted for NAMED users.
+# The pushing account is set as the owner.
+#
+# SINCE 1.2.0
+git.allowCreateOnPush = true
+
# The default access restriction for new repositories.
# Valid values are NONE, PUSH, CLONE, VIEW
# NONE = anonymous view, clone, & push
|