On Tue, Nov 03, 2020 at 04:25:40PM +0800, Luan Shengde wrote:
Hi, Fengguang:
I tested the igcommit and it works The tested logs as below:
crystal ~/test/todo/people/LuanShengde/credit% git push Enumerating objects: 11, done. Counting objects: 100% (11/11), done. Delta compression using up to 128 threads Compressing objects: 100% (6/6), done. Writing objects: 100% (6/6), 544 bytes | 544.00 KiB/s, done. Total 6 (delta 3), reused 0 (delta 0) remote: === CheckTodoCommit on bd30b811 === remote: ERROR: Credit name format: Zhang Dawei. remote: Name error or name format error. remote: : Wu zhende, Wu Zhengde, Wang chenglong (NameError) remote: To file:///home/luanshd/todo ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'file:///home/luanshd/todo' luanshd@crystal ~/test/todo/people/LuanShengde/credit%
I checked the /usr/bin/igcommit-receive, and found that the pre-receive is at /c/todo.git, not in directory hooks I wonder if the pre-receive is at a wrong place.
OK, perhaps it's manually disabled by me this way. I'll restore it to original place.
Thanks, Fengguang
crystal /c/todo.git% ls -al total 52K drwxrwsr-x. 2 wfg team 4.0K Sep 1 15:53 hooks ... lrwxrwxrwx. 1 wfg team 28 Jun 7 19:42 pre-receive -> /c/igcommit/igcommit-receive -rw-rw-r--. 1 zhangyuhang team 469 Sep 1 11:49 .rubocop.yml
Thanks Luan Shengde