From 82fa776ffafa2658c3e354bcb40a5be65690c420 Mon Sep 17 00:00:00 2001 From: Henryk Iwaniuk Date: Sun, 29 Jan 2017 23:31:42 +0100 Subject: [PATCH] allow operation in subdirectory of repository redirect all output to null --- git-recall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-recall b/git-recall index 1daaac9..3d3cfcd 100644 --- a/git-recall +++ b/git-recall @@ -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