Skip to content

Commit 0e6813b

Browse files
committed
fix(deploy): gh-pages deploy fail after repo create
Catches the error as they are no files to clean up on repo create. Closes angular#3385
1 parent 457a6e0 commit 0e6813b

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
@@ -216,7 +216,10 @@ const githubPagesDeployCommand = Command.extend({
216216
files = files.concat(`"${f}" `);
217217
}
218218
});
219-
return execPromise(`git rm -r ${files}`);
219+
return execPromise(`git rm -r ${files}`)
220+
.catch(() => {
221+
// Ignoring errors when trying to erase files.
222+
});
220223
});
221224
}
222225

0 commit comments

Comments
 (0)