Message ID | 20181023152054.10611-1-emil.l.velikov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dim: handle repo URLs ending with forward slash | expand |
diff --git a/dim b/dim index 93e90a4f96d0..71a681278cbc 100755 --- a/dim +++ b/dim @@ -192,7 +192,7 @@ function url_to_remote # url [url ...] fi for url; do - remote=$(git remote -v | grep -m 1 "$url (" | cut -f 1) + remote=$(git remote -v | grep -m 1 "$url/* (" | cut -f 1) if [[ -n "$remote" ]]; then echo "$remote" return 0