Fix restore of changes if repository is empty
Restoring a change is only possible if the target branch exists. If a
repository is empty there is no branch yet, but pushing to the branch
to which HEAD points is anyway allowed. If a change that was pushed to
this branch is abandoned, Gerrit does not allow to restore it since the
target branch does not exist.
With this change restoring changes that are pushed to the branch to
which HEAD points is now possible even if the branch doesn't exist.
Bug: issue 1430
Change-Id: I8db5b4d9724072495222fdc218e313896c61f45d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
1 file changed