Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5e5051

Browse files
committed
retirando o contexto
1 parent c1a0135 commit f5e5051

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/scripts/get_translated_strings_between_commits.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ def run_git_command(command):
1717

1818
def get_translated_commit_strings(commit_hash):
1919
try:
20-
commit_files = run_git_command(f"git switch {commit_hash} --detach")
21-
with commit_files as cf:
22-
output = os.popen(f"pocount *.po **/*.po").read()
23-
print(output)
20+
run_git_command(f"git switch {commit_hash} --detach")
21+
output = os.popen(f"pocount *.po **/*.po").read()
22+
print(output)
2423
# changed_files = run_git_command(f"git diff-tree --no-commit-id --name-only {commit_hash} -r").split("\n")
2524
# changed_files.remove("")
2625
# changed_count = 0

0 commit comments

Comments
 (0)