Skip to content

Commit

Permalink
Use binary encoding for child_process.exec(): it allows to retrieve b…
Browse files Browse the repository at this point in the history
…inary

files content from history.
  • Loading branch information
feugy committed Sep 26, 2012
1 parent c20c50b commit 5af25bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = Git = (git_dir, dot_git) ->
args ?= []
args = args.join " " if args instanceof Array
bash = "#{Git.bin} #{command} #{options} #{args}"
exec bash, {cwd: git_dir}, callback
exec bash, {cwd: git_dir, encoding:'binary'}, callback
return bash


Expand Down

0 comments on commit 5af25bc

Please sign in to comment.