allow operation in subdirectory of repository

redirect all output to null
This commit is contained in:
Henryk Iwaniuk 2017-01-29 23:31:42 +01:00
parent a46433ab6b
commit 82fa776ffa

View file

@ -25,7 +25,7 @@ COMMITS=""
VERSION="1.1.1"
# Are we in a git repo?
if [[ ! -d ".git" ]]; then
if [[ ! -d ".git" ]] && ! git rev-parse --git-dir &>/dev/null; then
echo "abort: not a git repository." 1>&2
exit 1
fi