diff --git a/README.md b/README.md index f5c1e61..68d7d20 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,22 @@ now support .rb/.php/.java ## setup +**1. install gitlab package** -**1. copy `todo.rb` to your PATH or somewhere not in your PATH** +`` +sudo gem install gitlab +`` -**2. add a `post-commit` file to your hooks directory.** +**2. copy `todo.rb` to your PATH or somewhere not in your PATH** + +**3. add a `post-commit` file to your hooks directory.** $ cat .git/hooks/post-commit todo.rb please verify your post-commit has a execute permission(through `chmod+x`). -**3. set gitlab url and private token** +**4. set gitlab url and private token** export GITLAB_HOST = ... export GITLAB_TOKEN = ... diff --git a/todo.rb b/todo.rb index 6bb708f..d1fa270 100755 --- a/todo.rb +++ b/todo.rb @@ -3,6 +3,7 @@ require 'gitlab' +Encoding.default_external = Encoding::UTF_8 $new_todo = [] $old_todo = []