t/Makefile: clean: Delete "tmpdir"
[gitspread.git] / post-receive
bloba519be47f97c4f8689842cc9889101be94ddde50
1 #!/bin/sh
3 # An example hook script for the "post-receive" event.
5 # The "post-receive" script is run after receive-pack has accepted a pack
6 # and the repository has been updated. It is passed arguments in through
7 # stdin in the form
8 # <oldrev> <newrev> <refname>
9 # For example:
10 # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
12 # see contrib/hooks/ for a sample, or uncomment the next line and
13 # rename the file to "post-receive".
15 #. /usr/share/doc/git-core/contrib/hooks/post-receive-email
16 repodir=$HOME/Git-spread
17 test -z "$GITSPREAD_REPODIR" || repodir="$GITSPREAD_REPODIR"
18 repo=$(basename $(pwd) .git)
19 file=$repodir/spool/$repo
20 cat >$file
21 echo Spreading $repo commits:
22 cat $file
23 echo Waiting for spreading to complete...
24 while test -e $file; do
25 sleep 1
26 done
27 echo Spreading finished