Skip to content

Commit 748bb89

Browse files
committed
fix #429 , using symbols to access options
1 parent 5c89ef6 commit 748bb89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/git/lib.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ def describe(committish=nil, opts={})
114114
arr_opts << '--always' if opts[:always]
115115
arr_opts << '--exact-match' if opts[:exact_match] || opts[:"exact-match"]
116116

117-
arr_opts << '--dirty' if opts['dirty'] == true
118-
arr_opts << "--dirty=#{opts['dirty']}" if opts['dirty'].is_a?(String)
117+
arr_opts << '--dirty' if opts[:dirty] == true
118+
arr_opts << "--dirty=#{opts[:dirty]}" if opts[:dirty].is_a?(String)
119119

120-
arr_opts << "--abbrev=#{opts['abbrev']}" if opts[:abbrev]
121-
arr_opts << "--candidates=#{opts['candidates']}" if opts[:candidates]
122-
arr_opts << "--match=#{opts['match']}" if opts[:match]
120+
arr_opts << "--abbrev=#{opts[:abbrev]}" if opts[:abbrev]
121+
arr_opts << "--candidates=#{opts[:candidates]}" if opts[:candidates]
122+
arr_opts << "--match=#{opts[:match]}" if opts[:match]
123123

124124
arr_opts << committish if committish
125125

0 commit comments

Comments
 (0)