[x]):Done on any repo (test made on a fresh new repo, after the initial commit)
test.md) in a "new branch" (a banch named test) with a commit message testPushUpdate: newCommit.CommitsBeforeLimit: exit status 129 - error: unknown option `contains' usage: git for-each-ref [options] [] -s, --shell quote placeholders suitably for shells -p, --perl quote placeholders suitably for perl --python quote placeholders suitably for python --tcl quote placeholders suitably for tcl --count show only matched refs --format format to use for the output --sort field name to sort on
test successfully is created.It seems a "post-*" hook issue.
and 2. 

Getting this with pushes to repo, any idea how it could be fixed?
This in the logs:
2018/06/04 23:40:27 [T] PushUpdate: http://0.0.0.0:3000/api/internal/push/update
2018/06/04 23:40:27 [...io/gitea/cmd/hook.go:212 runHookPostReceive()] [E] Update: Failed to update public key: newCommit.CommitsBeforeLimit: exit status 129 - error: unknown option `contains'
usage: git for-each-ref [options] [<pattern>]
-s, --shell quote placeholders suitably for shells
-p, --perl quote placeholders suitably for perl
--python quote placeholders suitably for python
--tcl quote placeholders suitably for tcl
--count <n> show only <n> matched refs
--format <format> format to use for the output
--sort <key> field name to sort on
@berkus What version of Gitea are you using (and also what version of Git are you using)?
Can you please check if 1.4.2 has fixed this issue?
Yes I confirmed : 1.4.1 = bug ; 1.4.2 = FIXED
(FYI I still have git version 2.1.4)
Do you know what is changed to fix the issue ?
We had a bug in our git package that used --contains option which isn't available in older git version.
It was fixed by implementing a fallback solution for versions not supporting it.
I tried with the build from master (would be 1.5.0) and it works fine now!
Closing issue as fixed, please reopen if issue persists in latest version
Most helpful comment
I tried with the build from
master(would be 1.5.0) and it works fine now!