abump: verify that we're in git tree

This commit is contained in:
Dubiousjim 2013-07-05 00:21:32 -04:00 committed by Natanael Copa
parent 8198ded868
commit 9a740d05aa
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ cvelist=
fixes=
[ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR"
git rev-parse 2>/dev/null || die "not in a git tree"
args=`getopt -o s:Rkqh --long security:,recursive,keep,quiet,help -n "$prog" -- "$@"`
if [ $? -ne 0 ]; then