git-scripts/git-templates/project-test.sh

9 lines
264 B
Bash
Raw Normal View History

2019-06-01 23:21:13 +00:00
#!/usr/bin/env bash
rsync -a project/ project-test/
my_input='old1 new1 name1
000 fff refs/heads/master
'
echo "$my_input" | ./project-test/hooks/pre-receive
./project-test/hooks/update ref_name old_rev new_rev
echo "$my_input" | ./project-test/hooks/post-receive