Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deploy): gh-pages deploy fail after repo create #3386

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

rolyatsats
Copy link
Contributor

Catches the error as they are no files to clean up on repo create.

Closes #3385

@@ -216,7 +216,8 @@ const githubPagesDeployCommand = Command.extend({
files = files.concat(`"${f}" `);
}
});
return execPromise(`git rm -r ${files}`);
return execPromise(`git rm -r ${files}`)
.catch(() => Promise.resolve());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please replace this line with:

.catch(() => {
  // Ignoring errors when trying to erase files.
});

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sir!

@hansl hansl self-assigned this Dec 7, 2016
Catches the error as they are no files to clean up on repo create.

Closes angular#3385
@rolyatsats rolyatsats force-pushed the gh-pages-new-deploy-fail branch from 2fb1941 to 0e6813b Compare December 7, 2016 12:56
@hansl
Copy link
Contributor

hansl commented Dec 7, 2016

LGTM. Cheers!

@hansl hansl merged commit 0a68cc5 into angular:master Dec 7, 2016
@rolyatsats rolyatsats deleted the gh-pages-new-deploy-fail branch December 19, 2016 18:14
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
Catches the error as they are no files to clean up on repo create.

Closes angular#3385
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github-pages:deploy failing after first creating repo
3 participants