summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-08-22 17:46:01 -0400
committerKyle Meyer <kyle@kyleam.com>2020-08-22 17:46:01 -0400
commit5684a4fa0a25089752c04f59172f9708601314e9 (patch)
treeef6b5ec16c0312732f4f41ad5c1cba491d71234c
parentbb24e230c10ca05e937e2404df2a6bd594850009 (diff)
downloadsnakemake-mode-5684a4fa0a25089752c04f59172f9708601314e9.tar.gz
post-applypatch: Don't assume that $GIT_DIR is ".git"
-rwxr-xr-xpost-applypatch2
1 files changed, 1 insertions, 1 deletions
diff --git a/post-applypatch b/post-applypatch
index 886ad76..49e226a 100755
--- a/post-applypatch
+++ b/post-applypatch
@@ -1,6 +1,6 @@
#!/bin/sh
-GIT_DIR=.git
+GIT_DIR="$(git rev-parse --absolute-git-dir)"
dotest="$GIT_DIR/rebase-apply"
prec=4 &&