Fix commit

commit didn't work because commit might be empty
using allow-empty as workaround