Skip to content

invalid byte sequence in UTF-8 in Windows10 and Windows Server 2016 #791

Description

@AVarnavskiy

Error:
C:\Users\artem\Desktop\TestOvercommit\overcommit>git commit -m "fix" invalid byte sequence in UTF-8 C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/utils/file_utils.rb:67:in win32_symlink?'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/utils/file_utils.rb:27:in symlink?' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/utils.rb:271:in broken_symlink?'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:65:in block in store_modified_times' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:64:in each'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:64:in store_modified_times' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:11:in setup_environment'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/hook_runner.rb:42:in block in run' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/interrupt_handler.rb:86:in isolate_from_interrupts'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/overcommit-0.59.1/lib/overcommit/hook_runner.rb:30:in run' .git/hooks/pre-commit:87:in

'
Report this bug at https://github.com/sds/overcommit/issues`

.overcommit.yml:
PreCommit: RuboCop: enabled: true

please help me to solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions