Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Sanitize git command error message before commenting on BitBucket
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Sep 29, 2016
1 parent a2787e4 commit 62fc7f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions badwolf/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def run(self):
logger.exception('Git command error')
self.update_build_status('FAILED', 'Git clone repository failed')
content = ':broken_heart: **Git error**: {}'.format(to_text(e))
content = sanitize_sensitive_data(content)
if self.context.pr_id:
pr = PullRequest(bitbucket, self.repo_full_name)
pr.comment(
Expand Down

0 comments on commit 62fc7f3

Please sign in to comment.