mirror of
https://github.com/Fakerr/git-recall.git
synced 2026-09-10 07:26:42 -04:00
allow operation in subdirectory of repository
redirect all output to null
This commit is contained in:
parent
a46433ab6b
commit
82fa776ffa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue