Initialize commitlist as empty.
Added pre-receive test.