Commit 59767636 authored by Timo Rothenpieler's avatar Timo Rothenpieler

fate: allow https for git URLs

parent 091fdce8
...@@ -30,14 +30,14 @@ lock(){ ...@@ -30,14 +30,14 @@ lock(){
checkout(){ checkout(){
case "$repo" in case "$repo" in
file:*|/*) src="${repo#file:}" ;; file:*|/*) src="${repo#file:}" ;;
git:*) git clone --quiet --branch "$branch" "$repo" "$src" ;; git:*|https:*) git clone --quiet --branch "$branch" "$repo" "$src" ;;
esac esac
} }
update()( update()(
cd ${src} || return cd ${src} || return
case "$repo" in 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 esac
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment