Skip to content

Commit d6cdafe

Browse files
sroetByron
authored andcommitted
reset default timeout to None
1 parent 5ec7967 commit d6cdafe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

git/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def handle_process_output(process: 'Git.AutoInterrupt' | Popen,
7979
finalizer: Union[None,
8080
Callable[[Union[subprocess.Popen, 'Git.AutoInterrupt']], None]] = None,
8181
decode_streams: bool = True,
82-
timeout: float = 60.0) -> None:
82+
timeout: Union[None, float] = None) -> None:
8383
"""Registers for notifications to learn that process output is ready to read, and dispatches lines to
8484
the respective line handlers.
8585
This function returns once the finalizer returns

git/remote.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def update(self, **kwargs: Any) -> 'Remote':
708708

709709
def _get_fetch_info_from_stderr(self, proc: 'Git.AutoInterrupt',
710710
progress: Union[Callable[..., Any], RemoteProgress, None],
711-
timeout: float = 60.0
711+
timeout: Union[None, float] = None,
712712
) -> IterableList['FetchInfo']:
713713

714714
progress = to_progress_instance(progress)
@@ -772,7 +772,7 @@ def _get_fetch_info_from_stderr(self, proc: 'Git.AutoInterrupt',
772772

773773
def _get_push_info(self, proc: 'Git.AutoInterrupt',
774774
progress: Union[Callable[..., Any], RemoteProgress, None],
775-
timeout: float = 60.0) -> IterableList[PushInfo]:
775+
timeout: Union[None, float] = None) -> IterableList[PushInfo]:
776776
progress = to_progress_instance(progress)
777777

778778
# read progress information from stderr
@@ -817,7 +817,7 @@ def _assert_refspec(self) -> None:
817817

818818
def fetch(self, refspec: Union[str, List[str], None] = None,
819819
progress: Union[RemoteProgress, None, 'UpdateProgress'] = None,
820-
verbose: bool = True, timeout: float = 60.0,
820+
verbose: bool = True, timeout: Union[None, float] = None,
821821
**kwargs: Any) -> IterableList[FetchInfo]:
822822
"""Fetch the latest changes for this remote
823823
@@ -865,7 +865,7 @@ def fetch(self, refspec: Union[str, List[str], None] = None,
865865

866866
def pull(self, refspec: Union[str, List[str], None] = None,
867867
progress: Union[RemoteProgress, 'UpdateProgress', None] = None,
868-
timeout: float = 60.0,
868+
timeout: Union[None, float] = None,
869869
**kwargs: Any) -> IterableList[FetchInfo]:
870870
"""Pull changes from the given branch, being the same as a fetch followed
871871
by a merge of branch with your local branch.
@@ -887,7 +887,7 @@ def pull(self, refspec: Union[str, List[str], None] = None,
887887

888888
def push(self, refspec: Union[str, List[str], None] = None,
889889
progress: Union[RemoteProgress, 'UpdateProgress', Callable[..., RemoteProgress], None] = None,
890-
timeout: float = 60.0, **kwargs: Any) -> IterableList[PushInfo]:
890+
timeout: Union[None, float] = None, **kwargs: Any) -> IterableList[PushInfo]:
891891
"""Push changes from source branch in refspec to target branch in refspec.
892892
893893
:param refspec: see 'fetch' method

0 commit comments

Comments
 (0)