[PATCHv1,6/6] git-p4: check for access to remote host earlier
diff mbox series

Message ID 20200129111246.12196-7-luke@diamand.org
State New
Headers show
  • git-p4: wait() for child processes better
Related show

Commit Message

Luke Diamand Jan. 29, 2020, 11:12 a.m. UTC
Check we can talk to the remote host before starting the git-fastimport

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>
 git-p4.py | 2 ++
 1 file changed, 2 insertions(+)

diff mbox series

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 @@  def run(self, args):
                     b = b[len(self.projectName):]
+        p4_check_access()
         err = None