lib/git/base.rb in git-1.2.7 vs lib/git/base.rb in git-1.2.8
- old
+ new
@@ -444,16 +444,16 @@
def gc
self.lib.gc
end
def apply(file)
- if File.exists?(file)
+ if File.exist?(file)
self.lib.apply(file)
end
end
def apply_mail(file)
- self.lib.apply_mail(file) if File.exists?(file)
+ self.lib.apply_mail(file) if File.exist?(file)
end
## LOWER LEVEL INDEX OPERATIONS ##
def with_index(new_index) # :yields: new_index