Title: Should Repository#createCommitOnHead create a new head if tree is empty? · Issue #852 · nodegit/nodegit · GitHub
Open Graph Title: Should Repository#createCommitOnHead create a new head if tree is empty? · Issue #852 · nodegit/nodegit
X Title: Should Repository#createCommitOnHead create a new head if tree is empty? · Issue #852 · nodegit/nodegit
Description: Using this function on a repository with no commits currently yields with "Error: Oid id is required." The function is quite helpful but i have to write the long way if the there is no HEAD. Which makes the shorter version irrelevant onc...
Open Graph Description: Using this function on a repository with no commits currently yields with "Error: Oid id is required." The function is quite helpful but i have to write the long way if the there is no HEAD. Which ...
X Description: Using this function on a repository with no commits currently yields with "Error: Oid id is required." The function is quite helpful but i have to write the long way if the there is no HE...
Opengraph URL: https://github.com/nodegit/nodegit/issues/852
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should Repository#createCommitOnHead create a new head if tree is empty?","articleBody":"Using this function on a repository with no commits currently yields with \"Error: Oid id is required.\" The function is quite helpful but i have to write the long way if the there is no HEAD. Which makes the shorter version irrelevant once i took the effort to write the longer one. So should the option be included to also support the initial commit if none is available?\n","author":{"url":"https://github.com/aldialimucaj","@type":"Person","name":"aldialimucaj"},"datePublished":"2016-01-05T15:59:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/852/nodegit/issues/852"}
| 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:6b83c1e2-21d2-e56d-513c-e7e1dc2ce299 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D14C:3E4B03:420BE23:5C8AE43:6A5FA9F0 |
| html-safe-nonce | 69fc548ee63f5e30cf6f4785415d10771a54ed43a1fc9ba6f6289fdb14a74777 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTRDOjNFNEIwMzo0MjBCRTIzOjVDOEFFNDM6NkE1RkE5RjAiLCJ2aXNpdG9yX2lkIjoiMzQ2OTI3Mjc1MDA5NTMxMzM5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 32ad6041d8408c183baaeee2874b2fb3efdb60c30da814ea0cc3473f91e73f29 |
| hovercard-subject-tag | issue:124994763 |
| 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/852/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17213f0e9866c4c58f5275f87f68342f14a41bf84a6ac77d8cb455eb2ff4ba20/nodegit/nodegit/issues/852 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17213f0e9866c4c58f5275f87f68342f14a41bf84a6ac77d8cb455eb2ff4ba20/nodegit/nodegit/issues/852 |
| og:image:alt | Using this function on a repository with no commits currently yields with "Error: Oid id is required." The function is quite helpful but i have to write the long way if the there is no HEAD. Which ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aldialimucaj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b835c054d57dfb6ce72ba8f0eb8f16f0370860631609eb10df818738c61c68d |
| 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 | 4df9bc0bde4bfd7cd95e75afdd7f103984ece3a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width