repository: Base: always create status folder using local name

This is what the Account class expects. I'm not sure why nobody
complained before.

Signed-off-by: Abdo Roig-Maranges <abdo.roig@gmail.com>
This commit is contained in:
Abdo Roig-Maranges 2016-11-27 14:12:43 +01:00
parent 2a3887ca08
commit 5eae16db45
1 changed files with 2 additions and 2 deletions

View File

@ -271,8 +271,8 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
self.ui.error(e, exc_info()[2], "Creating folder %s on "
"repository %s"% (remote_name, remote_repo))
raise
status_repo.makefolder(remote_name.replace(
remote_repo.getsep(), status_repo.getsep()))
status_repo.makefolder(local_trans[remote_name].replace(
local_repo.getsep(), status_repo.getsep()))
# Find and create new folders from remote to local.
for remote_name, remote_folder in remote_hash.items():