Skip to content

Commit 0a68cc5

Browse files
rolyatsatshansl
authored andcommitted
fix(deploy): gh-pages deploy fail after repo create (angular#3386)
Catches the error as they are no files to clean up on repo create. Closes angular#3385
1 parent 09f9aa9 commit 0a68cc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/angular-cli/commands/github-pages-deploy.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ const githubPagesDeployCommand = Command.extend({
217217
files = files.concat(`"${f}" `);
218218
}
219219
});
220-
return execPromise(`git rm -r ${files}`);
220+
return execPromise(`git rm -r ${files}`)
221+
.catch(() => {
222+
// Ignoring errors when trying to erase files.
223+
});
221224
});
222225
}
223226

0 commit comments

Comments
 (0)