Skip to content

Commit f5ed61b

Browse files
Fix husky box for large amount of files, Ref: DEV-447
1 parent ceeb0f3 commit f5ed61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.husky/commit-msg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ if [ -f "$commit_msg_file" ]; then
9292
changelog_first_line=$(head -n 1 CHANGELOG.md)
9393
current_date=$(date +%Y-%m-%d)
9494
if ! echo "$changelog_first_line" | grep -q "$current_date"; then
95-
echo "${GREEN}${NC} ${GREEN}• Consider updating changelog date to $current_date${NC}$(printf '%*s' 10 '')${GREEN}${NC}"
95+
echo "${GREEN}${NC} ${GREEN}• Consider updating changelog date to $current_date${NC}$(printf '%*s' 9 '')${GREEN}${NC}"
9696
fi
9797
fi
9898

9999
# Check for uncommitted files
100100
uncommitted_files=$(git status --porcelain | wc -l | tr -d ' ')
101101
if [ "$uncommitted_files" -gt 0 ]; then
102102
if [ "$uncommitted_files" -ge 10 ]; then
103-
echo "${GREEN}${NC} ${GREEN}• You have $uncommitted_files uncommitted files${NC}$(printf '%*s' 27 '')${GREEN}${NC}"
103+
echo "${GREEN}${NC} ${GREEN}• You have $uncommitted_files uncommitted files${NC}$(printf '%*s' 26 '')${GREEN}${NC}"
104104
else
105105
echo "${GREEN}${NC} ${GREEN}• You have $uncommitted_files uncommitted files${NC}$(printf '%*s' 27 '')${GREEN}${NC}"
106106
fi

0 commit comments

Comments
 (0)