[PATCH] dim: Fix url_to_remote
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Oct 24 19:37:59 UTC 2018
The regex in
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Wed Oct 24 15:22:08 2018 +0100
dim: handle repo URLs ending with forward slash
didn't actually work. Fix it.
Cc: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Lyude Paul <lyude at redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
dim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dim b/dim
index 56dc1e98cba3..1fc40ef15317 100755
--- a/dim
+++ b/dim
@@ -191,7 +191,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
--
2.19.1
More information about the dim-tools
mailing list