mirror of https://github.com/docker/docs.git
hack/vendor.sh: overwrite existing dependencies and remove .git so they can be checked in
This commit is contained in:
parent
ebee8f28ac
commit
45cedefadb
|
@ -14,5 +14,6 @@ docs/_templates
|
||||||
.gopath/
|
.gopath/
|
||||||
.dotcloud
|
.dotcloud
|
||||||
*.test
|
*.test
|
||||||
vendor/
|
|
||||||
bundles/
|
bundles/
|
||||||
|
.hg/
|
||||||
|
.git/
|
||||||
|
|
|
@ -12,10 +12,12 @@ git_clone () {
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
cd $vendor_dir
|
cd $vendor_dir
|
||||||
if [[ ! -d src/$PKG ]]; then
|
if [[ -d src/$PKG ]]; then
|
||||||
cd $vendor_dir && git clone http://$PKG src/$PKG
|
echo "src/$PKG already exists. Removing."
|
||||||
|
rm -fr src/$PKG
|
||||||
fi
|
fi
|
||||||
cd src/$PKG && git checkout -f $REV
|
cd $vendor_dir && git clone http://$PKG src/$PKG
|
||||||
|
cd src/$PKG && git checkout -f $REV && rm -fr .git
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue