drist

collection of scripts for use with drist
git clone git://git.pyratebeard.net/drist.git
Log | Files | Refs | README

git-post-receive-hook (198B)


      1 #!/bin/sh
      2 # detect git push -f
      3 force=0
      4 while read -r old new ref; do
      5 	hasrevs=$(git rev-list "$old" "^$new" | sed 1q)
      6 	if test -n "$hasrevs"; then
      7 		force=1
      8 		break
      9 	fi
     10 done
     11 /usr/local/bin/stagitdo