Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid byte sequence in UTF-8 (Windows) #795

Closed
Dalazen opened this issue Aug 18, 2022 · 1 comment
Closed

Invalid byte sequence in UTF-8 (Windows) #795

Dalazen opened this issue Aug 18, 2022 · 1 comment

Comments

@Dalazen
Copy link

Dalazen commented Aug 18, 2022

invalid byte sequence in UTF-8

C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/utils/file_utils.rb:67:in `win32_symlink?'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/utils/file_utils.rb:27:in `symlink?'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/utils.rb:271:in `broken_symlink?'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:65:in `block in store_modified_times'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:64:in `each'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:64:in `store_modified_times'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/hook_context/helpers/stash_unstaged_changes.rb:11:in `setup_environment'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/hook_runner.rb:42:in `block in run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/interrupt_handler.rb:86:in `isolate_from_interrupts'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/overcommit-0.59.1/lib/overcommit/hook_runner.rb:30:in `run'
.git/hooks/pre-commit:87:in `<main>'
Report this bug at https://github.com/sds/overcommit/issues

Overcommit settings:

PreCommit:
  RuboCop:
    enabled: true

Also tried to disable symlink but still not working

PreCommit:
  BrokenSymlinks:
    enabled: false
  RuboCop:
    enabled: true

Apparently it works just fine when running overcommit -r but still not working when trying to commit

@sds sds added the duplicate label Aug 20, 2022
@sds
Copy link
Owner

sds commented Aug 20, 2022

Looks like a duplicate of #791. Would welcome a contribution to fix.

@sds sds closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants