X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/4c730203fde2eb1d6fdcbe11542c6730d11124ae..9abd734720ddad01338b0556ed6210bac5c5b145:/lib/nos_oignons.rb diff --git a/lib/nos_oignons.rb b/lib/nos_oignons.rb index 694a87b..028cac9 100644 --- a/lib/nos_oignons.rb +++ b/lib/nos_oignons.rb @@ -34,7 +34,7 @@ module NosOignons IO.popen(['git', 'diff-index', '--cached', '--name-status', against]) do |io| NosOignons::Git.handle_modified_files(io) do |file| - next unless file.start_with?("#{NosOignons::MEMBERS_ROOT}/") + next unless file.start_with?("#{NosOignons::MEMBERS_DB_DIR}/") begin # Use empty ref to get the index NosOignons::Member.read_from_git('', file) @@ -51,7 +51,7 @@ module NosOignons old_value, new_value, ref_name = ref_line.rstrip.split(' ', 3) IO.popen(['git', 'diff', '--name-status', "#{old_value}..#{new_value}"]) do |io| NosOignons::Git.handle_modified_files(io) do |file| - next unless file.start_with?("#{NosOignons::MEMBERS_ROOT}/") + next unless file.start_with?("#{NosOignons::MEMBERS_DB_DIR}/") begin NosOignons::Member.read_from_git(new_value, file) rescue ArgumentError