Title: Get-ProjectName fails when alias `git` exists · Issue #136 · PowerShellOrg/BuildHelpers · GitHub
Open Graph Title: Get-ProjectName fails when alias `git` exists · Issue #136 · PowerShellOrg/BuildHelpers
X Title: Get-ProjectName fails when alias `git` exists · Issue #136 · PowerShellOrg/BuildHelpers
Description: When there is defined alias with name git, the Get-ProjectName command (called without parameters) emits following error message: The variable cannot be validated because the value $null is not a valid value for the GitPath variable. At ...
Open Graph Description: When there is defined alias with name git, the Get-ProjectName command (called without parameters) emits following error message: The variable cannot be validated because the value $null is not a v...
X Description: When there is defined alias with name git, the Get-ProjectName command (called without parameters) emits following error message: The variable cannot be validated because the value $null is not a v...
Opengraph URL: https://github.com/PowerShellOrg/BuildHelpers/issues/136
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-ProjectName fails when alias `git` exists","articleBody":"When there is defined alias with name git, the `Get-ProjectName` command (called without parameters) emits following error message:\r\n```\r\nThe variable cannot be validated because the value $null is not a valid value for the GitPath variable.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\BuildHelpers\\2.0.16\\Public\\Get-ProjectName.ps1:57 char:9\r\n+ $GitPath = (Get-Command $GitPath -ErrorAction SilentlyContinu ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n```\r\n\r\nThe command itself works despite the error above.\r\n\r\nThe error could be avoided when $GitPath variable contains string `git.exe` or when the `get-command` has parameter `-CommandType Application` added at:\r\nhttps://github.com/RamblingCookieMonster/BuildHelpers/blob/master/BuildHelpers/Public/Get-ProjectName.ps1#L57","author":{"url":"https://github.com/peetrike","@type":"Person","name":"peetrike"},"datePublished":"2022-10-24T14:51:21Z","url":"https://github.com/PowerShellOrg/BuildHelpers/issues/136"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:9db03f45-3b9a-459a-5fd8-080e18423daa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B40A:C35DD:25272F4:33AD683:6AFD3EA2 |
| html-safe-nonce | abac9a7017c8fae62d833da603ceead45d9ae45e3fe6093ded49724da92d3b92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDBBOkMzNUREOjI1MjcyRjQ6MzNBRDY4Mzo2QUZEM0VBMiIsInZpc2l0b3JfaWQiOiIxMzYzNDY2OTgzNzA5Njg3NDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f8a867d2c655305af57a876eb24d03f687c74103283a73dcf27bf979ae75808a |
| hovercard-subject-tag | issue:1420963749 |
| 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/PowerShellOrg/BuildHelpers/136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa526ffa5c3de726ed1dc15ce432c9d58ac9c126484719a6239174ccf4f644ea/PowerShellOrg/BuildHelpers/issues/136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa526ffa5c3de726ed1dc15ce432c9d58ac9c126484719a6239174ccf4f644ea/PowerShellOrg/BuildHelpers/issues/136 |
| og:image:alt | When there is defined alias with name git, the Get-ProjectName command (called without parameters) emits following error message: The variable cannot be validated because the value $null is not a v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peetrike |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShellOrg/BuildHelpers git https://github.com/PowerShellOrg/BuildHelpers.git |
| octolytics-dimension-user_id | 4895314 |
| octolytics-dimension-user_login | PowerShellOrg |
| octolytics-dimension-repository_id | 59748913 |
| octolytics-dimension-repository_nwo | PowerShellOrg/BuildHelpers |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59748913 |
| octolytics-dimension-repository_network_root_nwo | PowerShellOrg/BuildHelpers |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width