Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local USER='xx'
- local PASS='xx'
- local PORT=6668
- local HOST='localhost'
- local CHAN='#test'
- read params
- hash="`echo $params | sed 's/^.* \(.*\) .*/\1/'`"
- branch=`git branch --contains $hash `
- tail=`git log -1 --pretty=format:' - %H %cn: %s' --abbrev=150 $hash `
- msg="$branch$tail"
- nc $HOST $PORT << EOF
- pass $PASS
- user $USER
- nick $USER
- privmsg $CHAN :$msg
- quit
- EOF
Add Comment
Please, Sign In to add comment