mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
hack/vendor.sh: overwrite existing dependencies and remove .git so they can be checked in
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -14,5 +14,6 @@ docs/_templates
|
||||
.gopath/
|
||||
.dotcloud
|
||||
*.test
|
||||
vendor/
|
||||
bundles/
|
||||
.hg/
|
||||
.git/
|
||||
|
||||
@@ -12,10 +12,12 @@ git_clone () {
|
||||
(
|
||||
set -e
|
||||
cd $vendor_dir
|
||||
if [[ ! -d src/$PKG ]]; then
|
||||
cd $vendor_dir && git clone http://$PKG src/$PKG
|
||||
if [[ -d src/$PKG ]]; then
|
||||
echo "src/$PKG already exists. Removing."
|
||||
rm -fr src/$PKG
|
||||
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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user