summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2017-04-11 21:17:32 +0200
committerYves Fischer <yvesf-git@xapek.org>2017-04-11 21:17:32 +0200
commitf94dbc4b70888069cf4c8475fcf5f7e349fcce7e (patch)
treee0b13f6372bf24fbd6e8fff3d308c64d32b3bd7e
parent7579ce9e26740725708d48f9911d9711814767e3 (diff)
downloadgit-repo-f94dbc4b70888069cf4c8475fcf5f7e349fcce7e.tar.gz
git-repo-f94dbc4b70888069cf4c8475fcf5f7e349fcce7e.zip
by default allow non-fast-forward push
-rwxr-xr-xgit-repo1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-repo b/git-repo
index 885aae2..2d79ca7 100755
--- a/git-repo
+++ b/git-repo
@@ -81,6 +81,7 @@ _create_repo() {
mkdir -p "$repo_dir"
git init -q --bare --shared=$shared "$repo_dir"
+ git config receive.denyNonFastforwards false
chgrp -R "$group" "$repo_dir"
echo "$repo_desc" > "$repo_dir/description"