Originally published at
Utoxin's Random Insanity. You can comment here or
there.
I recently had the need to make sure that files that were pushed to a git repository had a required string in them. It took a few hours, but here’s what I came up with to do it:
#!/bin/sh
refname="$1"
oldrev="$2"
newrev="$3"
paths="path/in/repo/"
required="
(
Read more... )