Skip to content

Commit 703baf7

Browse files
committed
Add current working directory to file path
* Avoid a path checking thrown by git show (will lead to crash)
1 parent 52bb30c commit 703baf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/fix_diffs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ def main(fp, original_po_commit='HEAD'):
9494

9595
if __name__ == '__main__':
9696
import sys
97+
9798
if len(sys.argv) < 2:
9899
print('Usage: python fix_diffs.py <po_file_path> <original_po_file_commit_hash>')
99100

100-
fp = sys.argv[1]
101+
fp = './' + sys.argv[1]
101102
output_lines = None
102103
if len(sys.argv) == 3:
103104
original_hash = sys.argv[2]

0 commit comments

Comments
 (0)