summaryrefslogtreecommitdiffstats
path: root/test/hooks
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-12-18 21:27:39 +1100
committerJesse Duffield <jessedduffield@gmail.com>2018-12-18 21:27:39 +1100
commita4beabf4b940b65c26ce056e9bffc50e2d34b908 (patch)
tree9b0eb94bfd26da955ee53222c3e51f79362a67dd /test/hooks
parentc35255b7a9dd673db5efd28c83f618b6edff6289 (diff)
improved pre-push test script
Diffstat (limited to 'test/hooks')
-rw-r--r--test/hooks/pre-push9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/hooks/pre-push b/test/hooks/pre-push
index 156b9664c..b7cb2e87b 100644
--- a/test/hooks/pre-push
+++ b/test/hooks/pre-push
@@ -16,7 +16,10 @@ read username
echo -n "Password for 'github': "
read password
-# echo "failed"
-# exit 1
+if [ "$username" = "username" -a "$password" = "password" ]; then
+ echo "success"
+ exit 0
+fi
-exit 0 \ No newline at end of file
+>&2 echo "incorrect username/password"
+exit 1