Fix 500 while renaming repo, fixes #7400

王权利请求将github/fork/Razer6/fix_rename_project合并到master

Created by: Razer6

What does this MR do?

This PR fixes a regression when renaming a repo. Instead of relying to the dirty state, it get's the new path from update service. I

Why was this MR needed?

When renaming a repo, a 500 error is raised.

This PR fixes regression #7400 (closed)

/cc @randx @dosire

合并请求报告