]> git.ipfire.org Git - thirdparty/git.git/commitdiff
post-apply: allow working from elsewhere including secondary worktrees
authorJunio C Hamano <gitster@pobox.com>
Sun, 15 Mar 2026 15:23:50 +0000 (08:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 21:20:51 +0000 (14:20 -0700)
post-applypatch

index 83db132a30fe4e5642dbb884db62633a8610e4f6..6f286cf5a1de52e43d56cb2f24218511076a8685 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-GIT_DIR=.git
+GIT_DIR=$(git rev-parse --git-dir)
 dotest="$GIT_DIR/rebase-apply"
 
 prec=4 &&