Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf08d306

Browse files
committed
forward reference for IndexFile
1 parent473fc3a commitf08d306

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎git/index/fun.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,17 @@ def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None:
9696
exceptExceptionasex:
9797
raiseHookExecutionError(hp,ex)fromex
9898
else:
99-
stdout_list= []# type: List[str]
100-
stderr_list= []# type: List[str]
99+
stdout_list= []# type:List[str]
100+
stderr_list= []# type:List[str]
101101
handle_process_output(cmd,stdout_list.append,stderr_list.append,finalize_process)
102-
stdout_str=''.join(stderr_list)
103-
stderr_str=''.join(stderr_list)
102+
stdout=''.join(stdout_list)
103+
stderr=''.join(stderr_list)
104104
ifcmd.returncode!=0:
105-
stdout=force_text(stdout_str,defenc)
106-
stderr=force_text(stderr_str,defenc)
105+
stdout=force_text(stdout,defenc)
106+
stderr=force_text(stderr,defenc)
107107
raiseHookExecutionError(hp,cmd.returncode,stderr,stdout)
108108
# end handle return code
109+
# end handle return code
109110

110111

111112
defstat_mode_to_index_mode(mode):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp