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
index 83db132a30..6f286cf5a1 100755
--- a/post-applypatch
+++ b/post-applypatch
@@ -1,6 +1,6 @@
#!/bin/sh
-GIT_DIR=.git
+GIT_DIR=$(git rev-parse --git-dir)
dotest="$GIT_DIR/rebase-apply"
prec=4 &&