diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-01-04 11:15:47 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-01-04 11:15:47 +0100 |
commit | 2fd6a701aeed4fbff3e8f5c3207e1cfcc2a2dd5f (patch) | |
tree | a7e11dae26a52597f707c2d642127780a8e15f20 /scripts | |
parent | 85db1d5f02fabf03d2cfb5f4bbf662316f69e55d (diff) |
Fix if-else for empty if branch
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hooks/pre-push.fixup-warn.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/hooks/pre-push.fixup-warn.sh b/scripts/hooks/pre-push.fixup-warn.sh index 3ad7233e..3f0c393e 100644 --- a/scripts/hooks/pre-push.fixup-warn.sh +++ b/scripts/hooks/pre-push.fixup-warn.sh @@ -14,10 +14,8 @@ z40=0000000000000000000000000000000000000000 while read local_ref local_sha remote_ref remote_sha do - if [ "$local_sha" = $z40 ] + if [ "$local_sha" != $z40 ] then - # Branch is deleted, nothing to check here, move along. - else if [ "$remote_sha" = $z40 ] then # New branch, examine all commits |