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

Jani Nikula
2017-10-05T08:53:20Z

Don't assume current directory works.

Signed-off-by: Jani Nikula <jani.nikula@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