From 055083e5ff65549d5152fd1b994723e40dd554d7 Mon Sep 17 00:00:00 2001 From: Mihai Cristescu Date: Sun, 5 Apr 2020 12:51:07 +0300 Subject: [PATCH] Fix #75: Show submodule commits --- git-standup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-standup b/git-standup index 0e60273..13ed035 100755 --- a/git-standup +++ b/git-standup @@ -260,7 +260,8 @@ for DIR in ${PROJECT_DIRS}; do BASENAME=$(basename "$CUR_DIR") # continue if not a git directory - if [[ ! -d ".git" || -f ".git" ]]; then + VALID_GIT_DIR=$(git rev-parse --git-dir 2> /dev/null) + if [[ -z $VALID_GIT_DIR ]]; then cd "${BASE_DIR}" || exit continue fi