Skip to content
Browse files

added FIXME: newly added files wont show up in GitStore::FileStore

  • Loading branch information...
1 parent ba18ff7 commit 9b7ffdd98f7257bd38cfafc25650b2afa064321a @georgi committed Apr 12, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/git_store.rb
View
6 lib/git_store.rb
@@ -294,8 +294,7 @@ def initialize(path)
end
def load
- root.load_from_disk
-
+ root.load_from_disk
each_blob_in(root) do |blob|
@mtime[blob.path] = File.mtime("#{path}/#{blob.path}")
end
@@ -311,6 +310,9 @@ def each_blob_in(tree, &blob)
end
def refresh!
+ # FIXME: newly added files wont be found
+
+ root.load_from_disk
each_blob_in(root) do |blob|
path = "#{self.path}/#{blob.path}"
if File.exist?(path)

0 comments on commit 9b7ffdd

Please sign in to comment.
Something went wrong with that request. Please try again.