Page MenuHomePhabricator
Paste P1824

.hooks/arc-lint-on-commit.sh
ActivePublic

Authored by cburroughs on Jul 15 2015, 6:51 PM.
Tags
None
Referenced Files
F626083: .hooks/arc-lint-on-commit.sh
Jul 15 2015, 6:51 PM
Subscribers
None
#!/bin/bash
BRANCH=`git rev-parse --abbrev-ref HEAD`
if [[ "$BRANCH" == "master" ]]; then
echo "running arc lint..."
arc lint --rev=HEAD || exit 1
fi
exit 0

Event Timeline

cburroughs changed the title of this paste from untitled to .hooks/arc-lint-on-commit.sh.
cburroughs updated the paste's language from autodetect to autodetect.