Title: presence of 'uname' not a definite criteria for CYGWIN · Issue #1979 · gitpython-developers/GitPython · GitHub
Open Graph Title: presence of 'uname' not a definite criteria for CYGWIN · Issue #1979 · gitpython-developers/GitPython
X Title: presence of 'uname' not a definite criteria for CYGWIN · Issue #1979 · gitpython-developers/GitPython
Description: GitPython/git/util.py Line 467 in a527224 process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True) see also this discussion: oxwhirl/pymarl#113 The subject is, your code wants to look after a maybe or mayb...
Open Graph Description: GitPython/git/util.py Line 467 in a527224 process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True) see also this discussion: oxwhirl/pymarl#113 The subject is, your ...
X Description: GitPython/git/util.py Line 467 in a527224 process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True) see also this discussion: oxwhirl/pymarl#113 The subject is, your ...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1979
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"presence of 'uname' not a definite criteria for CYGWIN","articleBody":"https://github.com/gitpython-developers/GitPython/blob/a52722421e9afd333ed60be1ebf5a5aebb9a7e05/git/util.py#L467\n\nsee also this discussion:\nhttps://github.com/oxwhirl/pymarl/issues/113\n\nThe subject is, your code wants to look after a maybe or maybe not present program file of 'uname' in the same folder where 'git' is located.\n\nIn case there is no such file your code raises a benign exception. But in fact its rather expected. Thus an is_present() check upfront would avoid such a sort of non-needed but irritating message for 99% of all use cases on regular Linux. (fix 1)\n\nIf its not present you might find it somewhere else - probably just by going for the default search path... (fix 2)\n\nIf the program is finally there, then the program can be queried with option '-s' and the returned string could be compared to **its leading chars** matching with \"CYGWIN\", thus setting the result from the innermost block accordingly. (fix 3)\n\nfor the expectable results of a 'uname' query see also: https://stackoverflow.com/a/3466183/3423146\n\nbackgrounder:\ni have Linux with some self-updated versions of git plus a bunch of other tools - and thus using sort of variations of /usr/bin, /usr/local/bin and probably a few more locations. same can be for Mac, Cygwin or wherever. So the strategy to simply probing for one application sitting in the same folder as some other application has a bigger bunch of chances to fail - and so your codes might fail for it in various ways - giving a chance for a false result in either way: indicating Cygwin where there is not, and denying Cygwin where it really is. (=Bug)","author":{"url":"https://github.com/alexanderLinear","@type":"Person","name":"alexanderLinear"},"datePublished":"2024-11-22T14:58:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1979/GitPython/issues/1979"}
| 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:bd360a5a-af8b-2a82-e863-2adfb61586a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA58:292571:5F7B25:7E4FF4:69686A0A |
| html-safe-nonce | b77d11e9aa0cd06d9ae48f5a6c14eedc8fe97a58fa5fa828f834fdc063fefe9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTU4OjI5MjU3MTo1RjdCMjU6N0U0RkY0OjY5Njg2QTBBIiwidmlzaXRvcl9pZCI6IjQ3MzQ4MTM3MDg4NDU4Njk1NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26a10767c420d1deff544c80beabc6228c735d2037568313c04307d466b96442 |
| hovercard-subject-tag | issue:2683480023 |
| 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/gitpython-developers/GitPython/1979/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a2902f3862a18820dcf00d97c76b1e8d64445b74a8b002fe81f988ecb28a2c8/gitpython-developers/GitPython/issues/1979 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a2902f3862a18820dcf00d97c76b1e8d64445b74a8b002fe81f988ecb28a2c8/gitpython-developers/GitPython/issues/1979 |
| og:image:alt | GitPython/git/util.py Line 467 in a527224 process = subprocess.Popen([uname_cmd], stdout=subprocess.PIPE, universal_newlines=True) see also this discussion: oxwhirl/pymarl#113 The subject is, your ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexanderLinear |
| hostname | github.com |
| expected-hostname | github.com |
| None | 50f46dc2d6192249fd8ebf20e76c800f4f2596d4a5f3ab63dd63a754df154f54 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | fef287f17234b4529a4b112a3d47fe8551e32ddd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width