From d85f5f5cdd4d1fc8ad4a93e0eeaefa4ef20f0026 Mon Sep 17 00:00:00 2001 From: adina Date: Mon, 1 Jun 2026 11:38:26 +0000 Subject: [PATCH] remove staged and untracked symlink in case addurl registered inaccessible url --- .forgejo/workflows/register-depictions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/register-depictions.yaml b/.forgejo/workflows/register-depictions.yaml index 0b7f7a3f..1d56d252 100644 --- a/.forgejo/workflows/register-depictions.yaml +++ b/.forgejo/workflows/register-depictions.yaml @@ -56,7 +56,7 @@ jobs: echo "Register $targetfile" ; \ test -e "$targetfile" && git rm -f "$targetfile"; \ (git annex addurl --raw --relaxed --file="$targetfile" "$url" && git annex get "$targetfile") || \ - echo "addurl failed for $url, continuing..." + echo "addurl failed for $url, continuing..." && git restore --staged $targetfile && rm -f $targetfile done <<< "$depiction_urls" git annex push git annex push --cleanup -- 2.52.0