Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed May 11, 2014
1 parent f3809c7 commit 68cf02c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions hooks/pre-push
@@ -1,24 +1,12 @@
#!/bin/bash -e

remote="$1"
url="$2"

z40=0000000000000000000000000000000000000000

IFS=' '
while read local_ref local_sha remote_ref remote_sha
while read _ local_sha _ _
do
if [ "$local_sha" != $z40 ]
then
if [ "$remote_sha" = $z40 ]
then
# New branch, examine all commits
range="$local_sha"
else
# Update to existing branch, examine new commits
range="$remote_sha..$local_sha"
fi

make check
fi
done

0 comments on commit 68cf02c

Please sign in to comment.