Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1824
.hooks/arc-lint-on-commit.sh
Active
Public
Actions
Authored by
cburroughs
on Jul 15 2015, 6:51 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F626083: .hooks/arc-lint-on-commit.sh
Jul 15 2015, 6:51 PM
2015-07-15 18:51:54 (UTC+0)
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
edited the content of this paste.
(Show Details)
Jul 15 2015, 6:51 PM
2015-07-15 18:51:54 (UTC+0)
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
.
Log In to Comment