mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
fix: cd in precommit hook, not in qmlfmt script
This commit is contained in:
@@ -4,6 +4,5 @@
|
|||||||
# Can be installed from AUR "qmlfmt-git"
|
# Can be installed from AUR "qmlfmt-git"
|
||||||
# Requires qt6-5compat
|
# Requires qt6-5compat
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)"
|
|
||||||
echo "Formatting $(find . -name "*.qml" | wc -l) files..."
|
echo "Formatting $(find . -name "*.qml" | wc -l) files..."
|
||||||
find . -name "*.qml" -print0 | xargs -0 -P "$(nproc)" -I {} qmlfmt -e -b 360 -t 2 -i 2 -w {}
|
find . -name "*.qml" -print0 | xargs -0 -P "$(nproc)" -I {} qmlfmt -e -b 360 -t 2 -i 2 -w {}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pre-commit:
|
pre-commit:
|
||||||
jobs:
|
jobs:
|
||||||
- name: format qml
|
- name: format qml
|
||||||
run: ./Bin/dev/qmlfmt.sh && git update-index --again
|
run: cd "$(git rev-parse --show-toplevel)" && ./Bin/dev/qmlfmt.sh && git update-index --again
|
||||||
|
|||||||
Reference in New Issue
Block a user