allow empty commits, fixes #2