We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fb8b42 commit 73209cfCopy full SHA for 73209cf
hooks/pre-push
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
# * Commit parameters
4
# Unused now, but good for future reference. See man 5 githooks.
@@ -14,4 +14,9 @@ read local_ref local_sha remote_ref remote_sha
14
# cause remote code to be downloaded and executed (i.e. what would
15
# happen by installing packages). It can be done manually when needed.
16
17
-make sandbox=.sandbox test
+# Only run when pushing master.
18
+
19
+if [[ $local_ref = refs/heads/master ]]
20
+then
21
+ make sandbox=.sandbox test
22
+fi
0 commit comments