Skip to content

Instantly share code, notes, and snippets.

@jhelwig
Created November 9, 2010 04:53
Show Gist options
  • Save jhelwig/668717 to your computer and use it in GitHub Desktop.
Save jhelwig/668717 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
set -x
echo ENV
env | grep GIT
echo CN $GIT_COMMITTER_NAME
echo CE $GIT_COMMITTER_EMAIL
echo CD $GIT_COMMITTER_DATE
echo AN $GIT_AUTHOR_NAME
echo AE $GIT_AUTHOR_EMAIL
echo AD $GIT_AUTHOR_DATE
if [ "${GIT_COMMIT}" = "a619e00e308158f98a3595809cf49ee59c3f7e64" ] || \
[ "${GIT_COMMIT}" = "f4e7dc440e86858538e7b89dbfecec8d310e91eb" ]; then
GIT_AUTHOR_EMAIL="[email protected]"
fi
echo CN $GIT_COMMITTER_NAME
echo CE $GIT_COMMITTER_EMAIL
echo CD $GIT_COMMITTER_DATE
echo AN $GIT_AUTHOR_NAME
echo AE $GIT_AUTHOR_EMAIL
echo AD $GIT_AUTHOR_DATE
export GIT_COMMITTER_NAME=$GIT_COMMITTER_NAME
export GIT_COMMITTER_EMAIL=$GIT_COMMITTER_EMAIL
export GIT_AUTHOR_NAME=$GIT_AUTHOR_NAME
export GIT_AUTHOR_EMAIL=$GIT_AUTHOR_EMAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment