From 2a872b895ff6586ad49acd399cd93706da428b1e Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sat, 9 Aug 2025 21:38:23 -0400 Subject: [PATCH] Check if git repo --- scripts/bin/aquaai.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/bin/aquaai.sh b/scripts/bin/aquaai.sh index ebdaaca..e41c7b3 100755 --- a/scripts/bin/aquaai.sh +++ b/scripts/bin/aquaai.sh @@ -443,6 +443,11 @@ function editor_input() { msg=${user_input} } +# Check if current directory is managed by git. +function is_git_repo() { + git rev-parse --is-inside-work-tree &> /dev/null +} + # Check if current directory is managed by git. function check_git_directory() { if ! git rev-parse --is-inside-work-tree &> /dev/null; then