From 2c1e1688e855eeb4ace76a064d550212fde6e21a Mon Sep 17 00:00:00 2001 From: Den Delimarsky <53200638+localden@users.noreply.github.com> Date: Sat, 20 Sep 2025 13:56:06 -0700 Subject: [PATCH 1/2] Update scripts/bash/check-prerequisites.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- scripts/bash/check-prerequisites.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bash/check-prerequisites.sh b/scripts/bash/check-prerequisites.sh index 9dba90a..d8e7930 100644 --- a/scripts/bash/check-prerequisites.sh +++ b/scripts/bash/check-prerequisites.sh @@ -80,7 +80,7 @@ source "$SCRIPT_DIR/common.sh" # Get feature paths and validate branch eval $(get_feature_paths) -check_feature_branch "$CURRENT_BRANCH" || exit 1 +check_feature_branch "$CURRENT_BRANCH" "$HAS_GIT" || exit 1 # If paths-only mode, output paths and exit if $PATHS_ONLY; then From 84ec4611c4dabe4cbf16fac8df68d0cecdb82525 Mon Sep 17 00:00:00 2001 From: Den Delimarsky <53200638+localden@users.noreply.github.com> Date: Sat, 20 Sep 2025 13:56:20 -0700 Subject: [PATCH 2/2] Update scripts/powershell/check-prerequisites.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- scripts/powershell/check-prerequisites.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/powershell/check-prerequisites.ps1 b/scripts/powershell/check-prerequisites.ps1 index 94582f7..3ce1163 100644 --- a/scripts/powershell/check-prerequisites.ps1 +++ b/scripts/powershell/check-prerequisites.ps1 @@ -58,7 +58,8 @@ EXAMPLES: # Get feature paths and validate branch $paths = Get-FeaturePathsEnv -if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH)) { +$hasGit = Test-Path (Join-Path $paths.REPO_ROOT ".git") +if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$hasGit)) { exit 1 }