Handline new lines correctly.
[git-central.git] / cbas / pre-receive
1 #!/bin/sh
2
3 nl=$'\n'
4 input=""
5 while read newref oldref refname ; do
6     input="$input$newref $oldref $refname$nl"
7 done
8
9 echo -n "$input" | sh /srv/git/hooks/server/pre-receive-only-one &&
10 echo -n "$input" | sh /srv/git/hooks/server/pre-receive-prefer-rebase &&
11 echo -n "$input" | sh /srv/git/hooks/server/pre-receive-stable &&
12 echo -n "$input" | sh /srv/git/hooks/server/pre-receive-trac
13