diff options
-rwxr-xr-x | git-commit.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh index c9c22abc5..d9ec1f14d 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -595,12 +595,14 @@ then PARENTS=$(git-cat-file commit HEAD | sed -n -e '/^$/q' -e 's/^parent /-p /p') fi + current=$(git-rev-parse --verify HEAD) else if [ -z "$(git-ls-files)" ]; then echo >&2 Nothing to commit exit 1 fi PARENTS="" + current= fi { |