[PATCH] dim: fix url_to_remote

Jani Nikula jani.nikula at linux.intel.com
Thu Apr 26 10:12:24 UTC 2018


On Thu, 26 Apr 2018, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> We've only been matching prefixes, which totally broke with the new
> drm/drm.git repo. Make sure we match the full url.
>
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
>  dim | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/dim b/dim
> index 95692c609745..501ab48354cf 100755
> --- a/dim
> +++ b/dim
> @@ -189,8 +189,9 @@ 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
> +			echoerr "found it: $url $remote"

Hardly echoerr.

>  			echo "$remote"
>  			return 0
>  		fi

-- 
Jani Nikula, Intel Open Source Technology Center


More information about the dim-tools mailing list