@matheusbsbs / matheus-bagliano / commits / 19fa5ac333
Fork 0

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 <luke@diamand.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Luke Diamand committed Jan 29, 2020 at 11:12 UTC 19fa5ac333134fc3aa1e462780c4690177474ade
1 file changed +2
git-p4.py
+2
@@ -3826,6 +3826,8 @@ class P4Sync(Command, P4UserMap):
3826 b = b[len(self.projectName):]
3827 self.createdBranches.add(b)
3828
3829 + p4_check_access()
3830 +
3831 self.openStreams()
3832
3833 err = None