test_post_update.sh 484 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. ###
  3. # This script is used to test the post-update hook
  4. #
  5. # This script is part of frank-ci, it is disributed under the terms of GPLv3 or
  6. # later.
  7. #
  8. # Copyright Oz N Tiram <oz.tiram@gmail.com>
  9. #
  10. ##
  11. function generate_junk(){
  12. for i in seq 1 3; do
  13. echo $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) > bla
  14. git commit -a -m "test `date`"
  15. done
  16. }
  17. git checkout master
  18. generate_junk
  19. git checkout dev
  20. git checkout master
  21. git push --all