remove staged and untracked symlink in case addurl registered inaccessible url #26

Merged
adina merged 1 commit from adina-patch-1 into main 2026-06-01 11:39:41 +00:00

View file

@ -56,7 +56,7 @@ jobs:
echo "Register $targetfile" ; \ echo "Register $targetfile" ; \
test -e "$targetfile" && git rm -f "$targetfile"; \ test -e "$targetfile" && git rm -f "$targetfile"; \
(git annex addurl --raw --relaxed --file="$targetfile" "$url" && git annex get "$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" done <<< "$depiction_urls"
git annex push git annex push
git annex push --cleanup git annex push --cleanup