Skip to content

Commit f04e01d

Browse files
committed
Merge branch 'consolidate-scripts' of https://github.com/github/spec-kit into consolidate-scripts
2 parents 2d242b4 + 84ec461 commit f04e01d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/bash/check-prerequisites.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ source "$SCRIPT_DIR/common.sh"
8080

8181
# Get feature paths and validate branch
8282
eval $(get_feature_paths)
83-
check_feature_branch "$CURRENT_BRANCH" || exit 1
83+
check_feature_branch "$CURRENT_BRANCH" "$HAS_GIT" || exit 1
8484

8585
# If paths-only mode, output paths and exit
8686
if $PATHS_ONLY; then

scripts/powershell/check-prerequisites.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ EXAMPLES:
5858

5959
# Get feature paths and validate branch
6060
$paths = Get-FeaturePathsEnv
61-
if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH)) {
61+
$hasGit = Test-Path (Join-Path $paths.REPO_ROOT ".git")
62+
if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$hasGit)) {
6263
exit 1
6364
}
6465

0 commit comments

Comments
 (0)