From: Luke Diamand Date: Wed, 29 Jan 2020 11:12:46 +0000 (+0000) Subject: git-p4: check for access to remote host earlier X-Git-Tag: v2.26.0-rc0~57^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19fa5ac333134fc3aa1e462780c4690177474ade;p=thirdparty%2Fgit.git git-p4: check for access to remote host earlier Check we can talk to the remote host before starting the git-fastimport subchild. Otherwise we fail to connect, and then exit, leaving git-fastimport still running since we did not wait() for it. Signed-off-by: Luke Diamand Signed-off-by: Junio C Hamano --- diff --git a/git-p4.py b/git-p4.py index a69a24bf4c..eb5bc28cf9 100755 --- a/git-p4.py +++ b/git-p4.py @@ -3826,6 +3826,8 @@ class P4Sync(Command, P4UserMap): b = b[len(self.projectName):] self.createdBranches.add(b) + p4_check_access() + self.openStreams() err = None