update-lvm.sh in chef-ruby-lvm-attrib-0.2.5 vs update-lvm.sh in chef-ruby-lvm-attrib-0.2.6
- old
+ new
@@ -39,16 +39,13 @@
# do initial clone or update LVM2 repository
clone_lvm2() {
if [ ! -d $GIT_DIR ]; then
msg "Checkout $repo_url"
- install -d $GIT_DIR
- git init
- git remote add origin $repo_url
- git fetch --depth 1 origin $refs --tags
+ git submodule update --init --recursive
else
msg "Update $repo_url"
- git fetch origin $refs --tags
+ git submodule update --recursive
fi
}
process_lvm2_version() {
local tag=$1