Skip to content

Commit e0160cc

Browse files
committed
lib/git/base.rb: resolve wrong judgement of commit exist in newer ruby
The code doesn't work in ruby 3.3.8. Signed-off-by: Philip Li <[email protected]>
1 parent e012d4d commit e0160cc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/git/base.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ def commit_exist?(commit)
3333
command('rev-list', ['-1', commit])
3434
rescue StandardError
3535
false
36-
else
37-
true
3836
end
3937

4038
def remote_exist?(remote)

0 commit comments

Comments
 (0)