sds / overcommit

A fully configurable and extendable Git hook manager
MIT License
3.91k stars 280 forks source link

Invalid byte sequence in UTF-8 #850

Open anko20094 opened 4 months ago

anko20094 commented 4 months ago

In rubymine, Windows 11

00:35:49.370: [wardy_bot] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -f -- app/validators/updates/bot_command_validator.rb app/controllers/telegram_webhooks_router.rb app/services/user_panel/profile/chats/moderation/main_service.rb
00:35:49.435: [wardy_bot] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false commit -F C:\Users\Danyil\AppData\Local\Temp\git-commit-msg-.txt --
invalid byte sequence in UTF-8
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/utils/file_utils.rb:67:in `win32_symlink?'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/utils/file_utils.rb:27:in `symlink?'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/utils.rb:271:in `broken_symlink?'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:65:in `block in store_modified_times'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:64:in `each'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:64:in `store_modified_times'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:11:in `setup_environment'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/hook_runner.rb:42:in `block in run'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/interrupt_handler.rb:86:in `isolate_from_interrupts'
C:/Ruby-on-Windows/3.2.2-1/lib/ruby/gems/3.2.0/gems/overcommit-0.63.0/lib/overcommit/hook_runner.rb:30:in `run'
.git/hooks/pre-commit:87:in `<main>'