[PATCH] dim: fix url_to_remote

Daniel Vetter daniel.vetter at ffwll.ch
Thu Apr 26 10:27:30 UTC 2018


We've only been matching prefixes, which totally broke with the new
drm/drm.git repo. Make sure we match the full url.

v2: Remove the debug leftovers (Jani).

Acked-by: Jani Nikula <jani.nikula at linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index 95692c609745..091dff8518ed 100755
--- a/dim
+++ b/dim
@@ -189,7 +189,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.17.0



More information about the dim-tools mailing list