Skip to content

Commit

Permalink
Merge pull request #40 from ContextLab/dev
Browse files Browse the repository at this point in the history
modified the following entries: BurrOkad75
  • Loading branch information
jeremymanning authored Dec 29, 2020
2 parents 8ac184b + 727d623 commit 6d3589b
Show file tree
Hide file tree
Showing 2 changed files with 38,168 additions and 38,162 deletions.
10 changes: 3 additions & 7 deletions bibcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from helpers import check_bib, compare_bibs
import typer
import numpy as np
import subprocess
import os

app = typer.Typer()
Expand Down Expand Up @@ -60,14 +59,11 @@ def log_exists(fname):
commit_fname = outfile
else:
commit_fname = get_commit_fname()
_, changes = compare_bibs(reference, fname, outfile=commit_fname, verbose=verbose, return_summary=True)

_, changes = compare_bibs(reference, fname, outfile=outfile, verbose=verbose, return_summary=True)

#commit the changes
subprocess.call(f'git commit -m "{changes}" {bibfile}')

if not outfile:
if os.path.exists(commit_fname):
os.remove(commit_fname)
os.system(f'git commit -a -m "{changes}"')

if __name__ == "__main__":
app()
Loading

0 comments on commit 6d3589b

Please sign in to comment.