Comments (9)
Myself at @perlun are in the process of resurrecting the project. I don't want this issue to get lost so I'm re-openong. We've not discussed priorities yet, however internationalization is likely to be high.
from ruby-git.
It seems that this issue has been solved in the meantime. I succesfully checked it with the example provided by @fwal
from ruby-git.
I can confirm this issue, with version 1.2.5, ruby 1.9.3 and the error message "invalid byte squence in UTF-8"
A possible, imperfect workaround would be to replace in lib/git/lib.rb, line 672..
def command_lines(cmd, opts = [], chdir = true, redirect = '')
command(cmd, opts, chdir).split("\n")
end
...with...
def command_lines(cmd, opts = [], chdir = true, redirect = '')
line = command(cmd, opts, chdir)
if !line.valid_encoding?
line = line.unpack('C*').pack('U*')
end
line.split("\n")
end
from ruby-git.
+1 Having the same issue
The solution proposed by @ut works.
from ruby-git.
+1 too, this works fine for me.
from ruby-git.
Thanks for the feedback, I made a pull request out of this workaround.
If someone wants to use the gem with this fix right now, just use my fork
from ruby-git.
Seems abandoned 🗑
from ruby-git.
Looking at the queue of the waiting PR, that's a pity.
from ruby-git.
That's awesome @ut, then I'll close this for real 🎉
from ruby-git.
Related Issues (20)
- Failing test due to hardcoded `refs/heads/master` in tests/units/test_init.rb@test_git_init HOT 1
- Open git repository from child directory of git repository
- Git::Branch function update_ref doesn't work as expected
- Git::Branch private function parse_name doesn't work as documented
- failure using git built from source HOT 3
- Clarify how to use push with previously cloned repo HOT 1
- Test ticket from Code Climate
- Does this lib support git submodule operation? HOT 4
- Can't use `Git::Lib#remove` with `recursive` or `cached` options
- Checking out branches containing slashes broken since `1.15.0`? HOT 5
- 1.17.0 broke compatibility with ruby <2.7 HOT 5
- Redesign using `git config` with this gem
- Implement a way to mark a public API as deprecated HOT 1
- `cmd can not include a nested array` in 1.14.0 or higher HOT 1
- `remote.origin.fetch` is limited to the default branch HOT 1
- worktree.add corrupts repository index HOT 2
- --allow-empty HOT 3
- mention count argument of .log in README
- Is there a way to clone private repo using github token from specific branch
- Delete remote branch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-git.