Allow empty initial commit when setup repo.

When hit `git setup` in an empty directory, it doesn't create a commit. But often we need an empty initial commit for future rebasing and reseting, etc. Fixes #318.
This commit is contained in:
Jianjin Fan 2015-02-20 12:25:25 +08:00
parent 722a4061ac
commit 6df9673936

View file

@ -13,4 +13,4 @@ mkdir -p "$dir" \
&& gitdirexists \
&& git init \
&& git add . \
&& git commit -m 'Initial commit'
&& git commit --allow-empty -m 'Initial commit'