diff --git a/gitreceive b/gitreceive index ad6fdde..3392462 100755 --- a/gitreceive +++ b/gitreceive @@ -111,8 +111,9 @@ trigger_receiver() { while read oldrev newrev refname; do # Only run this script for the master branch. You can remove this # if block if you wish to run it for others as well. - [[ "$refname" == "refs/heads/master" ]] && \ + if [[ "$refname" == "refs/heads/master" ]]; then git archive "$newrev" | "$home_dir/receiver" "$repo" "$newrev" "$user" "$fingerprint" + fi done }