[PATCH] qf: Fetch all.

Rodrigo Vivi rodrigo.vivi at intel.com
Fri Jan 26 01:13:07 UTC 2018


Usually when we are at the fetch stage we want to fetch
all the related branches.

v2: Fetch inside the patches directory only refresh
    the repos seeing from inside that dir what it is
    not what we want, so let's fetch all from the right
    directory.

Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 qf | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/qf b/qf
index 2de890c5295e..533f55f85128 100755
--- a/qf
+++ b/qf
@@ -400,15 +400,13 @@ function qf_fetch
 	cd_toplevel
 	repo_start 0
 
-	remote=$(git config branch.$branch.remote)
+	# Fetch all relevant remotes out of patches dir first.
+	git fetch --all
 
+	remote=$(git config branch.$branch.remote)
 	cd patches
 	git fetch $remote
 	cd ..
-
-	git fetch $remote
-
-	git fetch $remote
 }
 
 function qf_pull
-- 
2.13.6



More information about the dim-tools mailing list