We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7d4641 + 84c56cd commit 20267e4Copy full SHA for 20267e4
.config/wt/start.sh
@@ -26,7 +26,8 @@ export KILN_WEB_URL="http://localhost:$KILN_FRONTEND_PORT"
26
27
export KILN_CODER_CMD="claude"
28
# user_settings.sh is gitignored, so in worktrees we fall back to the main repo copy
29
-MAIN_REPO_ROOT="$(git -C "$REPO_ROOT" rev-parse --path-format=absolute --git-common-dir 2>/dev/null | sed 's|/\.git$||')"
+MAIN_REPO_ROOT="$(git -C "$REPO_ROOT" rev-parse --git-common-dir 2>/dev/null || true)"
30
+MAIN_REPO_ROOT="${MAIN_REPO_ROOT%/.git}"
31
if [ -f "$REPO_ROOT/.config/wt/user_settings.sh" ]; then
32
# shellcheck source=/dev/null
33
source "$REPO_ROOT/.config/wt/user_settings.sh"
0 commit comments