'dim list-upstreams' is needed by bash completion and is used outside of git repos, also within git repos without drm upstream, so don't fail if it can be avoided. Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx> --- dim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dim b/dim index ac0be0b97ea1..fded4e669176 100755 --- a/dim +++ b/dim @@ -1216,7 +1216,11 @@ function dim_list_upstreams { local dim_drm_upstream_remote - dim_drm_upstream_remote=`url_to_remote $drm_upstream_git` + # Handle failures gracefully + if ! dim_drm_upstream_remote=$(url_to_remote $drm_upstream_git 2>/dev/null); then + return 0 + fi + echo origin/master echo $dim_drm_upstream_remote/drm-next echo $dim_drm_upstream_remote/drm-fixes -- 2.1.4 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx