diff options
author | Olaf Flebbe <of@oflebbe.de> | 2017-07-17 21:03:16 +0000 |
---|---|---|
committer | Konstantin Boudnik <konstantin_boudnik@epam.com> | 2017-07-19 13:26:57 -0700 |
commit | 9612b8f9ea80cbcb1f934bb4a5fabbfe14cbde96 (patch) | |
tree | de215556e0b831e16528d0bc012effca384f00f2 | |
parent | 3bdfb7d3a8cb2aaa8b7e3aa06f71b13c02fa68fd (diff) |
BIGTOP-2847: Building from git is broken
-rw-r--r-- | packages.gradle | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages.gradle b/packages.gradle index 1b089b27..d1a3d186 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 |