From 5710f54dc29eef41a3d2f58dedeae4aa88b1acc7 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Thu, 23 Jan 2025 13:29:21 -0800 Subject: [PATCH] Update fetch-from-rki-* - Use the github.com URL to auto redirect to the Git LFS location - add `--location` flag to follow redirect - updated branch to `HEAD` to always point to the default branch Resolves --- bin/fetch-from-rki-metadata | 4 ++-- bin/fetch-from-rki-sequences | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/fetch-from-rki-metadata b/bin/fetch-from-rki-metadata index 7b239ac1..58427b1a 100755 --- a/bin/fetch-from-rki-metadata +++ b/bin/fetch-from-rki-metadata @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -curl "https://raw.githubusercontent.com/robert-koch-institut/SARS-CoV-2-Sequenzdaten_aus_Deutschland/main/SARS-CoV-2-Sequenzdaten_Deutschland.tsv.xz" \ - --fail --silent --show-error --http1.1 \ +curl "https://github.com/robert-koch-institut/SARS-CoV-2-Sequenzdaten_aus_Deutschland/raw/HEAD/SARS-CoV-2-Sequenzdaten_Deutschland.tsv.xz" \ + --fail --silent --show-error --http1.1 --location \ --header 'User-Agent: https://github.com/nextstrain/ncov-ingest (hello@nextstrain.org)' diff --git a/bin/fetch-from-rki-sequences b/bin/fetch-from-rki-sequences index 67bc1d8f..224ca74a 100755 --- a/bin/fetch-from-rki-sequences +++ b/bin/fetch-from-rki-sequences @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -curl "https://raw.githubusercontent.com/robert-koch-institut/SARS-CoV-2-Sequenzdaten_aus_Deutschland/master/SARS-CoV-2-Sequenzdaten_Deutschland.fasta.xz" \ - --fail --silent --show-error --http1.1 \ +curl "https://github.com/robert-koch-institut/SARS-CoV-2-Sequenzdaten_aus_Deutschland/raw/HEAD/SARS-CoV-2-Sequenzdaten_Deutschland.fasta.xz" \ + --fail --silent --show-error --http1.1 --location \ --header 'User-Agent: https://github.com/nextstrain/ncov-ingest (hello@nextstrain.org)'