Skip to content

Commit

Permalink
Merge pull request #427 from online-judge-tools/fix/git-pull-first
Browse files Browse the repository at this point in the history
git pull first
  • Loading branch information
koba-e964 authored Dec 7, 2023
2 parents 18f853d + ca3485d commit b429a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onlinejudge_verify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def push_timestamp_to_branch() -> None:
subprocess.check_call(['git', 'config', '--global', 'user.name', 'GitHub'])
subprocess.check_call(['git', 'config', '--global', 'user.email', '[email protected]'])
path = onlinejudge_verify.marker.get_verification_marker().json_path
logger.info('$ git add %s && git commit && git push', str(path))
logger.info('$ git pull && git add %s && git commit && git push', str(path))
subprocess.check_call(['git', 'pull'])
if path.exists():
subprocess.check_call(['git', 'add', str(path)])
if subprocess.run(['git', 'diff', '--quiet', '--staged'], check=False).returncode:
Expand Down

0 comments on commit b429a1a

Please sign in to comment.