Title: Repository.init should accept boolean value for is_bare · Issue #538 · nodegit/nodegit · GitHub
Open Graph Title: Repository.init should accept boolean value for is_bare · Issue #538 · nodegit/nodegit
X Title: Repository.init should accept boolean value for is_bare · Issue #538 · nodegit/nodegit
Description: The docs for the is_bare param of Repository.init read: if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the working directory into which the .git directo...
Open Graph Description: The docs for the is_bare param of Repository.init read: if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the worki...
X Description: The docs for the is_bare param of Repository.init read: if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the worki...
Opengraph URL: https://github.com/nodegit/nodegit/issues/538
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Repository.init should accept boolean value for is_bare","articleBody":"The docs for the `is_bare` param of [Repository.init](http://www.nodegit.org/api/repository/#init) read:\n\n\u003e if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the working directory into which the .git directory will be created.\n\nYet the type of `is_bare` is expected to be a Number. Passing a boolean leads to an error: `[Error: Number is_bare is required.]`.\n\nHaving the docs refer to true and false when the expected type is a Number seems incongruous, especially if the value of the number has no impact on the outcome (other than the whether the number is truthy or falsy). If the value of the number does matter, please update the docs to refer to numbers; otherwise I'd expect the function to be able to accept a boolean.\n","author":{"url":"https://github.com/ivantm","@type":"Person","name":"ivantm"},"datePublished":"2015-04-13T01:23:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/538/nodegit/issues/538"}
| 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:c88011bc-8a8b-f17b-8509-51159be78f39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCF6:18E4DF:4F5999:6C2FC7:6A611ED1 |
| html-safe-nonce | 3cf355b278860a4b4889dbe6ec2bce0d0529fb4768e81b1ce7ea36ef5b4f0e3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0Y2OjE4RTRERjo0RjU5OTk6NkMyRkM3OjZBNjExRUQxIiwidmlzaXRvcl9pZCI6IjM4NTU2OTUxODM5NjQzNDgxMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 674deb314f45fa41679b4a4dcf07283f5a942fc4ff7bd0bbcd841f34f7f83736 |
| hovercard-subject-tag | issue:67982005 |
| 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/nodegit/nodegit/538/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8129448254ca69e3cd8d1533d62c5810b559b9de94b4211bd27b98d3cda88b6b/nodegit/nodegit/issues/538 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8129448254ca69e3cd8d1533d62c5810b559b9de94b4211bd27b98d3cda88b6b/nodegit/nodegit/issues/538 |
| og:image:alt | The docs for the is_bare param of Repository.init read: if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the worki... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ivantm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d23cf1c0cd2fa53870b9a743b3e1bc3ff0d0b0b3a477b50251e1c9dd8ecb93d |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| 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 | abf5a2f79ab9b533c5865f5281057f7d17cf18f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width