X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-commit-script;h=c6f8ee2b3df1a93bcf9b167b5fc5d3ee30381fd8;hb=aed022ab4ca1055e1c962b73e14dbf41380f84a9;hp=2632afdeede1af08e59fe1163cc8be2ba9e9f5cf;hpb=85c1f337be49eaa9a22e42a1c9958deef5ab57c3;p=git.git diff --git a/git-commit-script b/git-commit-script index 2632afde..c6f8ee2b 100755 --- a/git-commit-script +++ b/git-commit-script @@ -3,16 +3,12 @@ # Copyright (c) 2005 Linus Torvalds # +. git-sh-setup-script || die "Not a git archive" + usage () { - echo 'git commit [-m existing-commit] [...]' - exit 1 + die 'git commit [-m existing-commit] [...]' } -: ${GIT_DIR=.git} -if [ ! -d "$GIT_DIR" ]; then - echo Not a git directory 1>&2 - exit 1 -fi while case "$#" in 0) break ;; esac do case "$1" in