From 6df96739368c709c4633eae95a66e2c07406496a Mon Sep 17 00:00:00 2001 From: Jianjin Fan Date: Fri, 20 Feb 2015 12:25:25 +0800 Subject: [PATCH] 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. --- bin/git-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-setup b/bin/git-setup index 00a323e..6fdf675 100755 --- a/bin/git-setup +++ b/bin/git-setup @@ -13,4 +13,4 @@ mkdir -p "$dir" \ && gitdirexists \ && git init \ && git add . \ - && git commit -m 'Initial commit' + && git commit --allow-empty -m 'Initial commit'