8000 Test: Add print flush · N-analyst/commitizen_auto@d42021c · GitHub
[go: up one dir, main page]

Skip to content

Commit d42021c

Browse files
author
raw.data
committed
Test: Add print flush
1 parent d315de2 commit d42021c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

commitizen/commands/post_commit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def post_commit(self):
1616
backup_file = Path(
1717
tempfile.gettempdir(), f"cz.commit{os.environ.get('USER', '')}.backup"
1818
)
19+
print(backup_file, '=== 이거 실행 안되나?', flush=True)
1920

2021
# remove backup file if it exists
2122
if backup_file.is_file():

commitizen/commands/prepare_commit_msg.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ def prepare_commit_msg(self, commit_msg_file: Path) -> int:
3939
backup_file = Path(
4040
tempfile.gettempdir(), f"cz.commit{os.environ.get('USER', '')}.backup"
4141
)
42-
print(backup_file, '==== backup_file')
42+
print(backup_file, '==== backup_file', flush=True)
4343

4444
if backup_file.is_file():
45-
print('==== backup_file.is_file() 로직 진입')
45+
print('==== backup_file.is_file() 로직 진입', flush=True)
4646
# confirm if commit message from backup file should be reused
47-
answer = input("retry with previous message? [y/N]: ")
47+
print("retry with previous message? [y/N]: ", flush=True)
48+
answer = input()
4849
if answer.lower() == "y":
4950
shutil.copyfile(backup_file, commit_msg_file)
5051
return 0

0 commit comments

Comments
 (0)
0