webapp: When setting up a bare shared repository, enable non-fast-forward pushes.

This commit is contained in:
Joey Hess 2013-10-26 13:06:43 -04:00
parent 0c0e0e5550
commit 0dfe604ddc
4 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,12 @@
## 4.20131025
Note that all past versions of the assistant, when used to create a
git repository on a ssh server, set up the repository in a way that
prevents `git annex sync` from working (although the assistant can sync
with it). To fix this misconfiguration, you can ssh to the server
and run this command inside the bare git repository:
`git config receive.denyNonFastforwards false`
## version 4.20131024
This version fixes several different bugs that could cause the webapp to

View file

@ -285,3 +285,11 @@ Everything up-to-date
# End of transcript or log.
"""]]
> So, receive.denyNonFastforwards was the problem. It turns out that
> `git init --bare --shared` sets that by default, and the webapp
> uses that to create repositories on ssh server. I have made the webapp
> unset receive.denyNonFastforwards when setting up such a repository.
>
> Also added something to the assistant release notes about this
> to handle existing repositories. [[done]] --[[Joey]]