diff mbox series

dim: don't opencode fetch_all in dim_update_branches

Message ID 20181023151357.9980-1-emil.l.velikov@gmail.com (mailing list archive)
State New, archived
Headers show
Series dim: don't opencode fetch_all in dim_update_branches | expand

Commit Message

Emil Velikov Oct. 23, 2018, 3:13 p.m. UTC
From: Emil Velikov <emil.velikov@collabora.com>

Simply make use of the function, instead of duplicating it.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
---
 dim | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Comments

Emil Velikov Oct. 23, 2018, 3:28 p.m. UTC | #1
On Tue, 23 Oct 2018 at 16:14, Emil Velikov <emil.l.velikov@gmail.com> wrote:
>
> From: Emil Velikov <emil.velikov@collabora.com>
>
> Simply make use of the function, instead of duplicating it.
>
Please ignore this and the other three DIM patches. Seemingly git
workspaces cannot have different sendemail.to :-\

-Emil
diff mbox series

Patch

diff --git a/dim b/dim
index 8be504e46995..21e1e0d6ed45 100755
--- a/dim
+++ b/dim
@@ -2026,12 +2026,7 @@  function dim_update_branches
 
 	cd $DIM_PREFIX/$DIM_REPO
 
-	for repo in "${!drm_tip_repos[@]}"; do
-		remote=$(repo_to_remote $repo)
-		echo -n "Fetching $repo (local remote $remote)... "
-		git_fetch_helper $remote
-		echo "Done."
-	done
+	fetch_all
 
 	assert_repo_clean