Merge branch 'consolidate-scripts' of https://github.com/github/spec-kit into consolidate-scripts

This commit is contained in:
Den Delimarsky 🌺
2025-09-20 13:57:15 -07:00
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}