mirror of
https://github.com/perkeep/perkeep.git
synced 2025-02-26 20:25:07 +00:00
pre-commit hook: skip deleted files
http://camlistore.org/issues/74 Change-Id: Ie1cdeca8d22d0a41ced2a3a3d9bd7bc4b6c89951
This commit is contained in:
parent
cb5d6be1bb
commit
5b73925c2a
@ -20,6 +20,10 @@ fi
|
||||
committed=`git diff-index --cached --name-only HEAD`
|
||||
for c in $committed
|
||||
do
|
||||
if [ ! -e "$c" ]
|
||||
then
|
||||
continue
|
||||
fi
|
||||
gofile=`echo $c | grep -E '.*\.go$'`
|
||||
javafile=`echo $c | grep -E '.*\.java$'`
|
||||
if [ -n "$gofile" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user