Skip to content
Snippets Groups Projects
Commit 01aaf078 authored by Kirill Romanov's avatar Kirill Romanov Committed by Rhys Arkins
Browse files

fix(storage): do not throw error when no remote branch to delete (#4314) (#4868)

parent d46bd277
No related branches found
No related tags found
No related merge requests found
...@@ -381,8 +381,7 @@ export class Storage { ...@@ -381,8 +381,7 @@ export class Storage {
logger.debug({ branchName }, 'Deleted remote branch'); logger.debug({ branchName }, 'Deleted remote branch');
} catch (err) /* istanbul ignore next */ { } catch (err) /* istanbul ignore next */ {
checkForPlatformFailure(err); checkForPlatformFailure(err);
logger.info({ branchName, err }, 'Error deleting remote branch'); logger.debug({ branchName }, 'No remote branch to delete');
throw new Error('repository-changed');
} }
try { try {
await this._deleteLocalBranch(branchName); await this._deleteLocalBranch(branchName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment