From e5ec96a546bafab4ec8b78bebb16616156e99c3f Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Thu, 1 Jan 2015 17:14:35 +0100 Subject: Build sytem: internal macros: simplify clone of pkg specific branch Signed-off-by: Abdoulaye Walsimou Gaye --- core/mk/pkg-macros/download.mk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/mk/pkg-macros/download.mk b/core/mk/pkg-macros/download.mk index f31d75a..ee4f657 100644 --- a/core/mk/pkg-macros/download.mk +++ b/core/mk/pkg-macros/download.mk @@ -85,11 +85,8 @@ define __embtk_download_pkg_from_svn endef define __embtk_gitclone_pkg - (git clone $(__embtk_pkg_gitsite) $(__embtk_pkg_localgit) && \ - $(if $(findstring master,$(__embtk_pkg_gitbranch)),, \ - cd $(__embtk_pkg_localgit); \ - git checkout -b $(__embtk_pkg_gitbranch) \ - origin/$(__embtk_pkg_gitbranch) &&) \ + (git clone --branch=$(__embtk_pkg_gitbranch) \ + $(__embtk_pkg_gitsite) $(__embtk_pkg_localgit) && \ $(if $(findstring HEAD,$(__embtk_pkg_gitrev)),, \ cd $(__embtk_pkg_localgit); \ git reset --hard $(__embtk_pkg_gitrev) &&) \ -- cgit v1.2.3