mirror of
https://github.com/Fakerr/git-recall.git
synced 2026-09-10 07:26:42 -04:00
Merge pull request #7 from Teszko/patch-subdirectory
Allow operation in a subdirectory of a repository
This commit is contained in:
commit
e2a24fa8b3
|
|
@ -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