You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
332 B
15 lines
332 B
download_git() {
|
|
local reponame="$(basename "$1")"
|
|
local dir="$dir_source/$name/$reponame-$2"
|
|
|
|
if [ ! -d "$dir" ]; then
|
|
rm -rf "$dir"
|
|
git clone --recursive --depth=1 -b "v$2" "$1" "$dir"
|
|
else
|
|
cd "$dir"
|
|
git checkout "tags/v$2"
|
|
cd "$OLDPWD"
|
|
fi
|
|
|
|
getfile "$reponame-$2"
|
|
}
|
|
|