Skip to content

Commit 73209cf

Browse files
committed
Meta: (pre-push) Only test before pushing master
1 parent 6fb8b42 commit 73209cf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hooks/pre-push

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
# * Commit parameters
44
# Unused now, but good for future reference. See man 5 githooks.
@@ -14,4 +14,9 @@ read local_ref local_sha remote_ref remote_sha
1414
# cause remote code to be downloaded and executed (i.e. what would
1515
# happen by installing packages). It can be done manually when needed.
1616

17-
make sandbox=.sandbox test
17+
# 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

Comments
 (0)