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>
This commit is contained in:
Luke Diamand 2020-01-29 11:12:46 +00:00 коммит произвёл Junio C Hamano
Родитель 6026aff5bb
Коммит 19fa5ac333
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -3826,6 +3826,8 @@ class P4Sync(Command, P4UserMap):
b = b[len(self.projectName):]
self.createdBranches.add(b)
p4_check_access()
self.openStreams()
err = None