ncoop57 commited on
Commit
b05f041
1 Parent(s): 5b35f10

Add cleaning data between checkouts

Browse files
Files changed (1) hide show
  1. athena_data.py +2 -1
athena_data.py CHANGED
@@ -197,7 +197,8 @@ class NewDataset(datasets.GeneratorBasedBuilder):
197
  try:
198
  # Otherwise, parse the project
199
  g = Git(repo_path)
200
- g.checkout(commit, force=True)
 
201
  except Exception as e:
202
  print(e)
203
  continue
 
197
  try:
198
  # Otherwise, parse the project
199
  g = Git(repo_path)
200
+ g.clean(force=True, d=True)
201
+ g.checkout(commit)
202
  except Exception as e:
203
  print(e)
204
  continue