[Intel-gfx] [dim PATCH] dim: cd to dim repo in list-upstreams

Jani Nikula jani.nikula at intel.com
Thu Oct 5 08:53:04 UTC 2017


Don't assume current directory works.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 dim | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dim b/dim
index d4c0b72abf6e..79e4fbddd6e1 100755
--- a/dim
+++ b/dim
@@ -1751,6 +1751,8 @@ function dim_list_upstreams
 {
 	local dim_drm_upstream_remote
 
+	cd $DIM_PREFIX/$DIM_REPO
+
 	dim_drm_upstream_remote=$(repo_to_remote drm-upstream)
 
 	echo origin/master
-- 
2.11.0



More information about the Intel-gfx mailing list