Strip git remote uri before processing

Part of bug 1240852

Change-Id: I6cbe0e708e77b82214a5c85b8adac96106d4ec96