[Buildroot] [PATCH for buildroot-test 2/2] br-reproduce-build: do a fetch instead of a pull

Fabio Porcedda fabio.porcedda at gmail.com
Wed Feb 18 21:14:30 UTC 2015


The pull is not needed so use a cheaper fetch, also it will work even if
the existing repository doesn't point to branches of the official
repository.

Signed-off-by: Fabio Porcedda <fabio.porcedda at gmail.com>
---
 utils/br-reproduce-build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/br-reproduce-build b/utils/br-reproduce-build
index 10a2d13..01d1b7a 100755
--- a/utils/br-reproduce-build
+++ b/utils/br-reproduce-build
@@ -47,9 +47,9 @@ cd buildroot
 
 git remote set-url origin git://git.busybox.net/buildroot
 
-git pull
+git fetch
 if [ $? -ne 0 ] ; then
-    echo "Cannot pull Buildroot Git repository"
+    echo "Cannot fetch Buildroot official Git repository"
     rm -rf ${BUILD_DIR}
     exit 1
 fi
-- 
2.3.0



More information about the buildroot mailing list