We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d8c93e commit a636595Copy full SHA for a636595
hooks/update
@@ -3,6 +3,8 @@
3
# Hook script to validate rules and check locales before accepting
4
# pushed changes on the server side.
5
# See http://stackoverflow.com/questions/4541417/how-can-i-make-it-so-git-rejects-pushing-code-that-wont-compile
6
+#
7
+# By default, this should run in the root of the git repository.
8
9
# --- Command line
10
refname="$1"
@@ -24,7 +26,9 @@ fi
24
26
25
27
# --- Copy the state of the repository as of the new pushed code
28
-copydir = "./tmp/git_hook_compile_copy"
29
+maindir=$(git rev-parse --show-toplevel)
30
+cd "$maindir"
31
+copydir="./tmp/git_hook_compile_copy"
32
33
echo "making copy of $newrev to $copydir" >&2
34
rm -rf "$copydir"
0 commit comments