Commit 28de1c3c authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

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: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent a154caa4
......@@ -32,7 +32,7 @@ function join {
}
# Determine the tracking branch for the current branch
readonly REMOTE=$(git branch -vv | grep "^\*" | cut -d "[" -f 2- | cut -d ":" -f 1)
readonly REMOTE=$(git branch -vv | grep -e "^\*" | sed -e "s/ \+/ /g" | awk '{ print $4 }' | grep "\[" | tr -d ":[]")
if [ -z "$REMOTE" ]
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment