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)
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