post-apply: allow working from elsewhere including secondary worktrees

Junio C Hamano committed Mar 15, 2026 at 08:23 UTC 7b81ec94dc65aa3066dbc20133dbc8c51aa66148
1 file changed +1 -1
post-applypatch
+1 -1
@@ -1,6 +1,6 @@
1 #!/bin/sh
2
3 -GIT_DIR=.git
3 +GIT_DIR=$(git rev-parse --git-dir)
4 dotest="$GIT_DIR/rebase-apply"
5
6 prec=4 &&