From 03b8ba007099d5de52d8a0429031aaeb0f099717 Mon Sep 17 00:00:00 2001 From: schnusch Date: Thu, 13 Jan 2022 10:08:38 +0100 Subject: [PATCH] mpvScripts.sponsorblock: update script: do not use shallow fetch Shallow fetch should not be used because the script needs to look at past commits too to pick the latest commit before today. --- pkgs/applications/video/mpv/scripts/update-sponsorblock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/video/mpv/scripts/update-sponsorblock.sh b/pkgs/applications/video/mpv/scripts/update-sponsorblock.sh index 6422a53aa989..b4888365a6f3 100755 --- a/pkgs/applications/video/mpv/scripts/update-sponsorblock.sh +++ b/pkgs/applications/video/mpv/scripts/update-sponsorblock.sh @@ -26,7 +26,7 @@ if [ ! -d "$git_dir" ]; then git init --initial-branch="$git_branch" "$git_dir" git -C "$git_dir" remote add origin "$git_url" fi -git -C "$git_dir" fetch --depth=1 origin "$git_branch" +git -C "$git_dir" fetch origin "$git_branch" # use latest commit before today, we should not call the version *today* # because there might still be commits coming