fate: allow https for git URLs

This commit is contained in:
Timo Rothenpieler 2024-04-24 22:00:39 +02:00
parent 091fdce87e
commit 59767636c7
1 changed files with 2 additions and 2 deletions

View File

@ -30,14 +30,14 @@ lock(){
checkout(){
case "$repo" in
file:*|/*) src="${repo#file:}" ;;
git:*) git clone --quiet --branch "$branch" "$repo" "$src" ;;
git:*|https:*) git clone --quiet --branch "$branch" "$repo" "$src" ;;
esac
}
update()(
cd ${src} || return
case "$repo" in
git:*) git fetch --quiet --force && git reset --quiet --hard "origin/$branch" ;;
git:*|https:*) git fetch --quiet --force && git reset --quiet --hard "origin/$branch" ;;
esac
)