git p4: bring back files in deleted client directory
commit8d7ec3629cb1fc315b3218a8f277545157334a86
authorPete Wyckoff <pw@padd.com>
Mon, 30 Apr 2012 00:57:14 +0000 (29 20:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2012 22:59:01 +0000 (30 15:59 -0700)
tree5a29cf40e4195b01d379c17cc09c78b954712ff9
parent9768cafe681a7844d5a1d067991053b25db83bbb
git p4: bring back files in deleted client directory

The code to auto-create the client directory, added in 0591cfa
(git-p4: ensure submit clientPath exists before chdir,
2011-12-09), works when the client directory never existed.

But if the directory is summarily removed without telling p4,
the sync operation will not bring back all the files.  Always
do "sync -f" if the client directory is newly created.

Reported-by: Gary Gibbons <ggibbons@perforce.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
t/t9807-git-p4-submit.sh