mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate: allow https for git URLs
This commit is contained in:
parent
091fdce87e
commit
59767636c7
@ -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