Improve update.py

This commit is contained in:
NateScarlet 2019-03-09 19:39:53 +08:00
parent c1c33ae6f1
commit ae0ce478d8
No known key found for this signature in database
GPG Key ID: 5C242793B070309C

View File

@ -78,7 +78,7 @@ def main():
return
subprocess.run(['hub', 'add', *filenames], check=True)
diff = subprocess.run(['hub', 'diff', '--stat', '--cached', *filenames],
diff = subprocess.run(['hub', 'diff', '--stat', '--cached', '*.json'],
check=True,
stdout=subprocess.PIPE,
encoding='utf-8').stdout