Fix 'devel/check_copyright' remote branch detection
Fix 'devel/check_copyright' remote branch detection

... but do not try to check the copyrights for local branches which do
not have a proper remote branch, which would fail at a later step
anyway.

Signed-off-by: Jose A. Lopes <0fb9c4f8511df4ec2ae28af879e9d462f6218a2c@google.com>
Reviewed-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>

leshchevds/ganeti,mbakke/ganeti,ganeti/ganeti,leshchevds/ganeti,bitemyapp/ganeti,yiannist/ganeti,dimara/ganeti,leshchevds/ganeti,apyrgio/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,ganeti/ganeti,onponomarev/ganeti,andir/ganeti,grnet/snf-ganeti,andir/ganeti,yiannist/ganeti,apyrgio/ganeti,onponomarev/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,grnet/snf-ganeti,mbakke/ganeti,yiannist/ganeti,ganeti/ganeti,dimara/ganeti,bitemyapp/ganeti