Skip to content

Commit 20267e4

Browse files
authored
Merge pull request #1202 from Kiln-AI/sfierro/wk-fix
wt fix
2 parents d7d4641 + 84c56cd commit 20267e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.config/wt/start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export KILN_WEB_URL="http://localhost:$KILN_FRONTEND_PORT"
2626

2727
export KILN_CODER_CMD="claude"
2828
# 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$||')"
29+
MAIN_REPO_ROOT="$(git -C "$REPO_ROOT" rev-parse --git-common-dir 2>/dev/null || true)"
30+
MAIN_REPO_ROOT="${MAIN_REPO_ROOT%/.git}"
3031
if [ -f "$REPO_ROOT/.config/wt/user_settings.sh" ]; then
3132
# shellcheck source=/dev/null
3233
source "$REPO_ROOT/.config/wt/user_settings.sh"

0 commit comments

Comments
 (0)