mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
fate: allow https for git URLs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
d1caa1e910
commit
58470c83f0
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user