Merge pull request #7 from Teszko/patch-subdirectory

Allow operation in a subdirectory of a repository
This commit is contained in:
Walid Berrahal 2017-01-30 20:33:35 +01:00 committed by GitHub
commit e2a24fa8b3

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