git.el: Fix git-amend-commit to support amending an initial commit.