{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/3755","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/3755/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/3755/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/3755/events","html_url":"https://github.com/go-gitea/gitea/issues/3755","id":310915274,"node_id":"MDU6SXNzdWUzMTA5MTUyNzQ=","number":3755,"title":"A new branch raise an error even if the job is done","user":{"login":"tst2005","id":1117821,"node_id":"MDQ6VXNlcjExMTc4MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/1117821?v=4","gravatar_id":"","url":"https://api.github.com/users/tst2005","html_url":"https://github.com/tst2005","followers_url":"https://api.github.com/users/tst2005/followers","following_url":"https://api.github.com/users/tst2005/following{/other_user}","gists_url":"https://api.github.com/users/tst2005/gists{/gist_id}","starred_url":"https://api.github.com/users/tst2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tst2005/subscriptions","organizations_url":"https://api.github.com/users/tst2005/orgs","repos_url":"https://api.github.com/users/tst2005/repos","events_url":"https://api.github.com/users/tst2005/events{/privacy}","received_events_url":"https://api.github.com/users/tst2005/received_events","type":"User","site_admin":false},"labels":[{"id":472744938,"node_id":"MDU6TGFiZWw0NzI3NDQ5Mzg=","url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/bug","name":"kind/bug","color":"ee0701","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-03T16:49:56Z","updated_at":"2018-06-05T10:46:34Z","closed_at":"2018-06-05T10:46:34Z","author_association":"NONE","body":"- Gitea version (or commit ref): 1.4.0 (final release) (issue initially got on 1.4.0rc3)\r\n- Git version: 2.1.4\r\n- Operating system:\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [ ] MySQL\r\n  - [ ] MSSQL\r\n  - [x] SQLite\r\n- Can you reproduce the bug at https://try.gitea.io:\r\n  - [ ] Yes (provide example URL)\r\n  - [x] No\r\n  - [ ] Not relevant\r\n- Log gist:\r\n\r\n## Description\r\n\r\nDone on any repo (test made on a fresh new repo, after the initial commit)\r\n1. I'm creating a \"new file\" (named `test.md`) in a \"new branch\" (a banch named `test`) with a commit message `test`\r\n2. I got the following error message, with a HL on the filename (like a bad file name)\r\n```\r\nPushUpdate: 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\r\n```\r\n3. in fact the branch `test` successfully is created.\r\n\r\nIt seems a \"post-*\" hook issue.\r\n\r\n## Screenshots\r\n\r\n1. and 2. ![create a new file in a new branch](https://user-images.githubusercontent.com/1117821/38262877-be3219e8-376e-11e8-98cb-24771dca2ae6.png)\r\n\r\n3. ![the-branch-is-created](https://user-images.githubusercontent.com/1117821/38262879-c23be7d0-376e-11e8-802d-80ddfa965a39.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/394664815","html_url":"https://github.com/go-gitea/gitea/issues/3755#issuecomment-394664815","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/3755","id":394664815,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDY2NDgxNQ==","user":{"login":"lafriks","id":165205,"node_id":"MDQ6VXNlcjE2NTIwNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/165205?v=4","gravatar_id":"","url":"https://api.github.com/users/lafriks","html_url":"https://github.com/lafriks","followers_url":"https://api.github.com/users/lafriks/followers","following_url":"https://api.github.com/users/lafriks/following{/other_user}","gists_url":"https://api.github.com/users/lafriks/gists{/gist_id}","starred_url":"https://api.github.com/users/lafriks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lafriks/subscriptions","organizations_url":"https://api.github.com/users/lafriks/orgs","repos_url":"https://api.github.com/users/lafriks/repos","events_url":"https://api.github.com/users/lafriks/events{/privacy}","received_events_url":"https://api.github.com/users/lafriks/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T10:46:34Z","updated_at":"2018-06-05T10:46:34Z","author_association":"MEMBER","body":"Closing issue as fixed, please reopen if issue persists in latest version"}}
{"actor":{"display_login":"lafriks"}}