Commit 2c599e92 authored by Christophe Benz's avatar Christophe Benz

Handle files deletions from source repository

parent 1c02ee2d
Pipeline #984 passed with stage
in 2 minutes and 24 seconds
......@@ -235,6 +235,12 @@ def main():
cwd=args.target_dir,
)
# Remove all tracked files.
subprocess.check_call(
['git', 'rm', '--ignore-unmatch', '-r', '.'],
cwd=args.target_dir,
)
datasets_code = set()
provider['categories'] = []
source_filenames = sorted(
......@@ -370,7 +376,7 @@ def main():
save_node(args.target_dir, provider)
subprocess.check_call(
['git', 'add', '.'],
['git', 'add', '--all'],
cwd=args.target_dir,
)
# Note: Don't fail when there is nothing to commit.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment