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.

BUG=None
TEST=Used fromupstream.py to merge an upstream patch using a remote with
     and without the trailing /

Change-Id: I164db2c4882047299bf3a30eff87bdb43a3bb1fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2515264
Tested-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Commit-Queue: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
1 file changed