Skip to content

Commit 76f6c23

Browse files
committed
Fix options Hash examples (:repository, :index)
Fix Readme.md to use correct symbol names for options Hash. According to `base.rb` in v.1.2.6, the options Hash symbols are `:repository` instead of `:git_dir`, and `:index` instead of `:index_file`, as in: https://github.com/schacon/ruby-git/blob/v1.2.6/lib/git/base.rb#L25 https://github.com/schacon/ruby-git/blob/v1.2.6/lib/git/base.rb#L72
1 parent 41d9e3e commit 76f6c23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ And here are the operations that will need to write to your git repository.
140140
g = Git.init
141141
Git.init('project')
142142
Git.init('/home/schacon/proj',
143-
{ :git_dir => '/opt/git/proj.git',
144-
:index_file => '/tmp/index'} )
143+
{ :repository => '/opt/git/proj.git',
144+
:index => '/tmp/index'} )
145145

146146
g = Git.clone(URI, NAME, :path => '/tmp/checkout')
147147
g.config('user.name', 'Scott Chacon')

0 commit comments

Comments
 (0)