deepflow 0.1.60 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/deepflow-auto.sh +10 -2
- package/package.json +1 -1
package/bin/deepflow-auto.sh
CHANGED
|
@@ -461,10 +461,10 @@ run_single_spike() {
|
|
|
461
461
|
auto_log "Worktree already exists at ${worktree_path}, reusing"
|
|
462
462
|
else
|
|
463
463
|
local wt_err
|
|
464
|
-
wt_err="$(git worktree add -b "$branch_name" "$worktree_path" HEAD 2>&1)" || {
|
|
464
|
+
wt_err="$(git -C "$PROJECT_ROOT" worktree add -b "$branch_name" "$worktree_path" HEAD 2>&1)" || {
|
|
465
465
|
auto_log "worktree add -b failed: ${wt_err}"
|
|
466
466
|
# Branch may already exist from a previous run
|
|
467
|
-
wt_err="$(git worktree add "$worktree_path" "$branch_name" 2>&1)" || {
|
|
467
|
+
wt_err="$(git -C "$PROJECT_ROOT" worktree add "$worktree_path" "$branch_name" 2>&1)" || {
|
|
468
468
|
auto_log "ERROR: failed to create worktree for ${slug}: ${wt_err}"
|
|
469
469
|
echo "Worktree error for ${slug}: ${wt_err}" >&2
|
|
470
470
|
return 1
|
|
@@ -1232,6 +1232,14 @@ run_spec_cycle() {
|
|
|
1232
1232
|
main() {
|
|
1233
1233
|
parse_flags "$@"
|
|
1234
1234
|
|
|
1235
|
+
# Require git repository
|
|
1236
|
+
if ! git -C "$PROJECT_ROOT" rev-parse --git-dir &>/dev/null; then
|
|
1237
|
+
echo "Error: ${PROJECT_ROOT} is not a git repository." >&2
|
|
1238
|
+
echo "deepflow auto requires git for worktree-based parallel spikes." >&2
|
|
1239
|
+
echo "Run: git init && git add . && git commit -m 'initial commit'" >&2
|
|
1240
|
+
exit 1
|
|
1241
|
+
fi
|
|
1242
|
+
|
|
1235
1243
|
auto_log "deepflow-auto started (parallel=${PARALLEL}, hypotheses=${HYPOTHESES}, max_cycles=${MAX_CYCLES}, continue=${CONTINUE}, fresh=${FRESH})"
|
|
1236
1244
|
|
|
1237
1245
|
echo "deepflow-auto: discovering specs..."
|