]> nos-oignons.net Git - gestion-adh.git/blobdiff - lib/nos_oignons.rb
Add join date, fix renewal logic and add ability to specify path to wiki-ca
[gestion-adh.git] / lib / nos_oignons.rb
index 694a87b9649af1b1153d5b700be9618043832e2c..028cac97375f77f8d0227dcdef5ea8c3a5fbc941 100644 (file)
@@ -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