Title: hg identify call fails because it uses a `|`, but try_to_run() is missing shell=True · Issue #284 · codecov/codecov-python · GitHub
Open Graph Title: hg identify call fails because it uses a `|`, but try_to_run() is missing shell=True · Issue #284 · codecov/codecov-python
X Title: hg identify call fails because it uses a `|`, but try_to_run() is missing shell=True · Issue #284 · codecov/codecov-python
Description: Noticed by browsing somebody else's CI output: hg identify: option -d not recognized But, as you can see in this file: https://github.com/codecov/codecov-python/blob/master/codecov/__init__.py#L865 the command's intent is to provide -d n...
Open Graph Description: Noticed by browsing somebody else's CI output: hg identify: option -d not recognized But, as you can see in this file: https://github.com/codecov/codecov-python/blob/master/codecov/__init__.py#L865...
X Description: Noticed by browsing somebody else's CI output: hg identify: option -d not recognized But, as you can see in this file: https://github.com/codecov/codecov-python/blob/master/codecov/__init__.py#...
Opengraph URL: https://github.com/codecov/codecov-python/issues/284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hg identify call fails because it uses a `|`, but try_to_run() is missing shell=True","articleBody":"Noticed by browsing somebody else's CI output:\r\n```\r\n hg identify: option -d not recognized\r\n```\r\n\r\nBut, as you can see in this file: https://github.com/codecov/codecov-python/blob/master/codecov/__init__.py#L865 the command's intent is to provide `-d` not to `hg id`, but to `tr`. It doesn't work because by default `shell` argument of `try_to_run()` is False.\r\n\r\nThe fix could be to just provide shell=True to that function, but I suggest to replace the whole call with `try_to_run(['hg', 'log', '-r', '.', '-T', '{node}'])`.\r\n\r\nThank you for supporting Mercurial. If you have any questions, feel free to ping me.","author":{"url":"https://github.com/antonv6","@type":"Person","name":"antonv6"},"datePublished":"2020-07-04T16:18:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/284/codecov-python/issues/284"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:41e98269-e99d-4f89-a56d-db16659f9250 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D64:3D39DE:B84DD:106335:6A4C9119 |
| html-safe-nonce | be28ed2a426c0504e9c4ba20ffa977b8acc3e01527967c68004428101c0b5962 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDY0OjNEMzlERTpCODRERDoxMDYzMzU6NkE0QzkxMTkiLCJ2aXNpdG9yX2lkIjoiMjc3MTgwOTU3OTIxNzc1MjM0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d545ed59c6b10d717f24f12c7c120afd7177978c034280f0a81ba8251193c8eb |
| hovercard-subject-tag | issue:650917488 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codecov/codecov-python/284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87c7e2bd3b90addc4f9c5c1b1ef6c1283474ac528a91396445352696757d59e0/codecov/codecov-python/issues/284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87c7e2bd3b90addc4f9c5c1b1ef6c1283474ac528a91396445352696757d59e0/codecov/codecov-python/issues/284 |
| og:image:alt | Noticed by browsing somebody else's CI output: hg identify: option -d not recognized But, as you can see in this file: https://github.com/codecov/codecov-python/blob/master/codecov/__init__.py#L865... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antonv6 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/codecov/codecov-python git https://github.com/codecov/codecov-python.git |
| octolytics-dimension-user_id | 8226205 |
| octolytics-dimension-user_login | codecov |
| octolytics-dimension-repository_id | 22685735 |
| octolytics-dimension-repository_nwo | codecov/codecov-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22685735 |
| octolytics-dimension-repository_network_root_nwo | codecov/codecov-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width