Fix for #8271: Correctly restore empty repositories.

王权利请求将bug8271合并到master

Created by: ghost

If a project is being restored, but there is no bundle file, the project was empty when it was backed up. In this case, just use git init --base to create a new bare repository.

合并请求报告