You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2017/07/19 21:26:37 UTC

bigtop git commit: BIGTOP-2847: Building from git is broken

Repository: bigtop
Updated Branches:
  refs/heads/master 3bdfb7d3a -> 9612b8f9e


BIGTOP-2847: Building from git is broken


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/9612b8f9
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/9612b8f9
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/9612b8f9

Branch: refs/heads/master
Commit: 9612b8f9ea80cbcb1f934bb4a5fabbfe14cbde96
Parents: 3bdfb7d
Author: Olaf Flebbe <of...@oflebbe.de>
Authored: Mon Jul 17 21:03:16 2017 +0000
Committer: Konstantin Boudnik <ko...@epam.com>
Committed: Wed Jul 19 13:26:57 2017 -0700

----------------------------------------------------------------------
 packages.gradle | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/9612b8f9/packages.gradle
----------------------------------------------------------------------
diff --git a/packages.gradle b/packages.gradle
index 1b089b2..d1a3d18 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -211,26 +211,20 @@ def genTasks = { target ->
          uri.getFragment())
         exec {
           workingDir DL_DIR
-          commandLine "git clone --depth 1 ${uri} ${dir}".split()
+          commandLine "git clone --depth 1 --branch $GIT_REF ${uri} ${dir}".split()
           errorOutput devNull
           standardOutput devNull
         }
       } else {
         exec {
           workingDir DL_DIR
-          commandLine "git clone --depth 1 ${GIT_REPO} ${dir}".split()
+          commandLine "git clone --depth 1 --branch $GIT_REF ${GIT_REPO} ${dir}".split()
           errorOutput devNull
           standardOutput devNull
         }
       }
       exec {
         workingDir "$DL_DIR/${dir}"
-        commandLine "git checkout $GIT_REF".split()
-        errorOutput devNull
-        standardOutput devNull
-      }
-      exec {
-        workingDir "$DL_DIR/${dir}"
         commandLine "git submodule update --init".split()
         errorOutput devNull
         standardOutput devNull