[dim PATCH 1/2] dim: fetch Linus' tree again on update-branches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes: 6552af2d32c4 ("dim: fix update-branches to fetch all available nightly repos")
Cc: Archit Taneja <architt@xxxxxxxxxxxxxx>
Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
 dim | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dim b/dim
index 3dd2d1dec796..562cbc64c93e 100755
--- a/dim
+++ b/dim
@@ -1255,6 +1255,14 @@ function dim_update_branches
 	local repo remote
 
 	cd $DIM_PREFIX/$DIM_DRM_INTEL
+
+	if remote=$(url_to_remote $linux_upstream_git 2>/dev/null); then
+		echo -n "Fetching linux (local remote $remote)... "
+		# git fetch returns 128 if there's nothing to be fetched
+		git fetch -q $remote || true
+		echo "Done."
+	fi
+
 	for repo in "${!drm_tip_repos[@]}"; do
 		url=${drm_tip_repos[$repo]}
 		if ! remote=$(url_to_remote $url 2>/dev/null); then
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux