All four git-feature-* skills hardcoded /Users/torcsi/dev/kicad-wasm/ for
the helper-script invocations and one documentation example. That path
only resolved on the original author's machine — anyone else picking up
/git-feature-{start,commit,sync,finish} would hit "No such file or
directory" before the first pre-flight check ran.
Replaces the absolute paths with relative ones (`bash scripts/...`) and
rewrites the rebase-conflict handoff message in git-feature-sync.md to use
`git -C kicad ...` style instead of a hardcoded cd.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
34 lines
687 B
Shell
Executable file
34 lines
687 B
Shell
Executable file
#!/bin/bash
|
|
# Sourced library. Single source of truth for the 3-repo layout.
|
|
# Usage: source "$(dirname "$0")/repos.sh"
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
|
|
REPOS=(root kicad wxwidgets)
|
|
|
|
PATH_root="$ROOT_DIR"
|
|
PATH_kicad="$ROOT_DIR/kicad"
|
|
PATH_wxwidgets="$ROOT_DIR/wxwidgets"
|
|
|
|
MAIN_root="main"
|
|
MAIN_kicad="wasm-port"
|
|
MAIN_wxwidgets="wasm-port"
|
|
|
|
repo_path() {
|
|
local var="PATH_$1"
|
|
echo "${!var}"
|
|
}
|
|
|
|
repo_main() {
|
|
local var="MAIN_$1"
|
|
echo "${!var}"
|
|
}
|
|
|
|
run_git() {
|
|
# Echo before run so the user always sees what we're doing.
|
|
local repo="$1"; shift
|
|
local p
|
|
p=$(repo_path "$repo")
|
|
echo "+ git -C $p $*" >&2
|
|
git -C "$p" "$@"
|
|
}
|