Skip to content

Commit a3afb88

Browse files
authored
Remove unused svg and improve 'make svg-check' (#12311)
- Remove unused source SVG gitea-settings (it was changed to ociticon) - Improve 'make svg-check' to also detect added files
1 parent 7744b36 commit a3afb88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,10 @@ svg: node-check | node_modules
628628

629629
.PHONY: svg-check
630630
svg-check: svg
631-
@diff=$$(git diff $(SVG_DEST_DIR)); \
631+
@git add $(SVG_DEST_DIR)
632+
@diff=$$(git diff --cached $(SVG_DEST_DIR)); \
632633
if [ -n "$$diff" ]; then \
633-
echo "Please run 'make svg' and commit the result:"; \
634+
echo "Please run 'make svg' and 'git add $(SVG_DEST_DIR)' and commit the result:"; \
634635
echo "$${diff}"; \
635636
exit 1; \
636637
fi;

web_src/svg/gitea-settings.svg

-1
This file was deleted.

0 commit comments

Comments
 (0)