Fix if-else for empty if branch

This commit is contained in:
Matthias Beyer 2018-01-04 11:15:47 +01:00
parent 85db1d5f02
commit 2fd6a701ae

View file

@ -14,10 +14,8 @@ z40=0000000000000000000000000000000000000000
while read local_ref local_sha remote_ref remote_sha while read local_ref local_sha remote_ref remote_sha
do do
if [ "$local_sha" = $z40 ] if [ "$local_sha" != $z40 ]
then then
# Branch is deleted, nothing to check here, move along.
else
if [ "$remote_sha" = $z40 ] if [ "$remote_sha" = $z40 ]
then then
# New branch, examine all commits # New branch, examine all commits