]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-p4: check for access to remote host earlier
authorLuke Diamand <luke@diamand.org>
Wed, 29 Jan 2020 11:12:46 +0000 (11:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jan 2020 20:20:58 +0000 (12:20 -0800)
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 <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py

index a69a24bf4ca48d48e3833c3347ba67bd492dc889..eb5bc28cf9c6c3c3e93111de14b168ba2b66b88a 100755 (executable)
--- 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