git-p4: make closeStreams() idempotent
commit837b3a6376804ec70b88f06c3f702a38c59196c3
authorLuke Diamand <luke@diamand.org>
Wed, 29 Jan 2020 11:12:41 +0000 (29 11:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jan 2020 20:20:57 +0000 (30 12:20 -0800)
tree33e714c46354fc840dd5b6620b0e25da0932c97a
parentc7a62075917b3340f908093f63f1161c44ed1475
git-p4: make closeStreams() idempotent

Ensure that we can safely call self.closeStreams() multiple times, and
can also call it even if there is no git fast-import stream at all.

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py