Revision 28de1c3c

b/devel/check_copyright
32 32
}
33 33

  
34 34
# Determine the tracking branch for the current branch
35
readonly REMOTE=$(git branch -vv | grep "^\*" | cut -d "[" -f 2- | cut -d ":" -f 1)
35
readonly REMOTE=$(git branch -vv | grep -e "^\*" | sed -e "s/ \+/ /g" | awk '{ print $4 }' | grep "\[" | tr -d ":[]")
36 36

  
37 37
if [ -z "$REMOTE" ]
38 38
then

Also available in: Unified diff