mirror of
https://tvoygit.ru/Djam/r11-builder-agent.git
synced 2025-02-23 10:22:45 +00:00
remove depth
This commit is contained in:
parent
cf2122021f
commit
8ef2855a1a
1 changed files with 2 additions and 2 deletions
|
@ -471,12 +471,12 @@ do
|
|||
rm -rf ${HOME}/${PACKAGE:?}
|
||||
# checkout specific branch/tag if defined
|
||||
if [ ! -z "$project_version" ]; then
|
||||
git clone --depth 10 -b $project_version $git_repo ${HOME}/${PACKAGE}
|
||||
git clone -b $project_version $git_repo ${HOME}/${PACKAGE}
|
||||
pushd ${HOME}/${PACKAGE}
|
||||
git rev-parse HEAD > ${HOME}/commit_hash
|
||||
popd
|
||||
else
|
||||
git clone --depth 10 $git_repo ${HOME}/${PACKAGE}
|
||||
git clone $git_repo ${HOME}/${PACKAGE}
|
||||
pushd ${HOME}/${PACKAGE}
|
||||
git checkout $commit_hash
|
||||
popd
|
||||
|
|
Loading…
Add table
Reference in a new issue