fromupstream: rstrip '/' from remote urls

Strip the trailing '/' from any remote urls before comparing them to the
list of upstream urls. This fixes 'Error: need a valid upstream remote'
that is seen when you make this mistake.

TEST=Used to merge an upstream patch using a remote with
     and without the trailing /

Change-Id: I164db2c4882047299bf3a30eff87bdb43a3bb1fe
Tested-by: Abhishek Pandit-Subedi <>
Reviewed-by: Brian Norris <>
Commit-Queue: Abhishek Pandit-Subedi <>
1 file changed