Skip to content

Commit

Permalink
fix(deploy): gh-pages deploy fail after repo create (#3386)
Browse files Browse the repository at this point in the history
Catches the error as they are no files to clean up on repo create.

Closes #3385
  • Loading branch information
rolyatsats authored and hansl committed Dec 7, 2016
1 parent 09f9aa9 commit 0a68cc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/angular-cli/commands/github-pages-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ const githubPagesDeployCommand = Command.extend({
files = files.concat(`"${f}" `);
}
});
return execPromise(`git rm -r ${files}`);
return execPromise(`git rm -r ${files}`)
.catch(() => {
// Ignoring errors when trying to erase files.
});
});
}

Expand Down

0 comments on commit 0a68cc5

Please sign in to comment.