Skip to content

Commit 70a8689

Browse files
opps, removing ruby 1.9 hash syntax.
1 parent 6140db1 commit 70a8689

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/git/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def self.init(working_dir, opts = {})
2727
FileUtils.mkdir_p(opts[:working_directory]) if opts[:working_directory] && !File.directory?(opts[:working_directory])
2828

2929
init_opts = {
30-
bare: opts[:bare]
30+
:bare => opts[:bare]
3131
}
3232

3333
opts.delete(:working_directory) if opts[:bare]

tests/units/test_index_ops.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ def test_clean
5656
assert(File.exists?('file-to-clean'))
5757
assert(File.exists?('dir_to_clean'))
5858

59-
g.clean(force:true)
59+
g.clean(:force => true)
6060

6161
assert(!File.exists?('file-to-clean'))
6262
assert(File.exists?('dir_to_clean'))
6363

6464
new_file('file-to-clean', 'blablahbla')
6565

66-
g.clean(force:true, d:true)
66+
g.clean(:force => true, :d => true)
6767

6868
assert(!File.exists?('file-to-clean'))
6969
assert(!File.exists?('dir_to_clean'))

tests/units/test_init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_git_init
4141

4242
def test_git_init_bare
4343
in_temp_dir do |path|
44-
repo = Git.init(path, bare: true)
44+
repo = Git.init(path, :bare => true)
4545
assert(File.directory?(File.join(path, '.git')))
4646
assert(File.exists?(File.join(path, '.git', 'config')))
4747
assert_equal('true', repo.config('core.bare'))

0 commit comments

Comments
 (0)