René's URL Explorer Experiment


Title: AheadBehindTest relies on defaultBranch=master in .gitconfig · Issue #653 · git-commit-id/git-commit-id-maven-plugin · GitHub

Open Graph Title: AheadBehindTest relies on defaultBranch=master in .gitconfig · Issue #653 · git-commit-id/git-commit-id-maven-plugin

X Title: AheadBehindTest relies on defaultBranch=master in .gitconfig · Issue #653 · git-commit-id/git-commit-id-maven-plugin

Description: Describe the bug (required) The AheadBehindTest fails if defaultBranch is not equal to master in .gitconfig. Tell us about your plugin configuration (required) Not applicable Tell us about the Plugin version used (required) Master branch...

Open Graph Description: Describe the bug (required) The AheadBehindTest fails if defaultBranch is not equal to master in .gitconfig. Tell us about your plugin configuration (required) Not applicable Tell us about the Plug...

X Description: Describe the bug (required) The AheadBehindTest fails if defaultBranch is not equal to master in .gitconfig. Tell us about your plugin configuration (required) Not applicable Tell us about the Plug...

Opengraph URL: https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/653

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AheadBehindTest relies on defaultBranch=master in .gitconfig","articleBody":"### Describe the bug (required)\r\n\r\nThe `AheadBehindTest` fails if `defaultBranch` is not equal to `master` in `.gitconfig`.\r\n\r\n### Tell us about your plugin configuration (required)\r\n\r\nNot applicable\r\n\r\n### Tell us about the Plugin version used (required)\r\n\r\nMaster branch\r\n\r\n### Tell us about the Maven version used (required)\r\n\r\nNot applicable\r\n\r\n### Steps to Reproduce (required)\r\n\r\nChange all references to master to test in `AheadBehindTest`. See https://github.com/jkylling/git-commit-id-maven-plugin/commit/32de0ed4d877359546837e2c0925a99fc22d9b4e\r\n\r\n### Are there any stacktraces or any error messages? (required)\r\n\r\n```\r\norg.eclipse.jgit.api.errors.TransportException: Remote branch 'master' not found in upstream origin\r\n\r\n\tat org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:249)\r\n\tat org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:325)\r\n\tat org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:191)\r\n\tat pl.project13.maven.git.AheadBehindTest.setupSecondLocalRepository(AheadBehindTest.java:156)\r\n\tat pl.project13.maven.git.AheadBehindTest.setup(AheadBehindTest.java:61)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)\r\n\tat org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)\r\n\tat org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)\r\n\tat org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54)\r\n\tat org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54)\r\n\tat org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54)\r\n\tat org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)\r\n\tat org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)\r\n\tat org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)\r\n\tat org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:413)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)\r\n\tat com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)\r\n\tat com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)\r\n\tat com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)\r\n\tat com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)\r\n\tat com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)\r\nCaused by: org.eclipse.jgit.errors.TransportException: Remote branch 'master' not found in upstream origin\r\n\tat org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:157)\r\n\tat org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:105)\r\n\tat org.eclipse.jgit.transport.Transport.fetch(Transport.java:1462)\r\n\tat org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:238)\r\n\t... 36 more\r\n\r\n```\r\n### Is there a (public) project where this issue can be reproduced? (optional)\r\n\r\n_No response_\r\n\r\n### Your Environment (optional)\r\n\r\n_No response_\r\n\r\n### Context (optional)\r\n\r\nThe cause seems to be within jgit which does not set the `initialBranch` when initializing a repository when cloning. A workaround is to modify `.gitconfig` `defaultBranch`, or change `master` in the test to the value of `defaultBranch`. There is probably a way to fix the test to not rely on the value of `initialBranch`.","author":{"url":"https://github.com/jkylling","@type":"Person","name":"jkylling"},"datePublished":"2023-10-01T22:12:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/653/git-commit-id-maven-plugin/issues/653"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2c1f9181-9d54-d113-089c-c7fc8ad3f95e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC16:18CA1:34F129:426806:69906BF6
html-safe-nonce8d0ffcd710e61e8f3a583e39b8f17fa5947f24ec1aca8191c39bf8d1d62c8b34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzE2OjE4Q0ExOjM0RjEyOTo0MjY4MDY6Njk5MDZCRjYiLCJ2aXNpdG9yX2lkIjoiMjQ3ODQ3NzI0MTQ2NzU2Mjk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca2b1fcebf02540f353e837506f452e70079dfcdf6270e077aea093149813fa42
hovercard-subject-tagissue:1921000312
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/git-commit-id/git-commit-id-maven-plugin/653/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f638b21f7461fcb69d46081505ae00e819705b1896bb267797e82f8df60b9aea/git-commit-id/git-commit-id-maven-plugin/issues/653
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f638b21f7461fcb69d46081505ae00e819705b1896bb267797e82f8df60b9aea/git-commit-id/git-commit-id-maven-plugin/issues/653
og:image:altDescribe the bug (required) The AheadBehindTest fails if defaultBranch is not equal to master in .gitconfig. Tell us about your plugin configuration (required) Not applicable Tell us about the Plug...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejkylling
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/git-commit-id/git-commit-id-maven-plugin git https://github.com/git-commit-id/git-commit-id-maven-plugin.git
octolytics-dimension-user_id43124426
octolytics-dimension-user_logingit-commit-id
octolytics-dimension-repository_id1361792
octolytics-dimension-repository_nwogit-commit-id/git-commit-id-maven-plugin
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1361792
octolytics-dimension-repository_network_root_nwogit-commit-id/git-commit-id-maven-plugin
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues/653#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgit-commit-id%2Fgit-commit-id-maven-plugin%2Fissues%2F653
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgit-commit-id%2Fgit-commit-id-maven-plugin%2Fissues%2F653
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=git-commit-id%2Fgit-commit-id-maven-plugin
Reloadhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues/653
Reloadhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues/653
Reloadhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues/653
git-commit-id https://patch-diff.githubusercontent.com/git-commit-id
git-commit-id-maven-pluginhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgit-commit-id%2Fgit-commit-id-maven-plugin
Fork 302 https://patch-diff.githubusercontent.com/login?return_to=%2Fgit-commit-id%2Fgit-commit-id-maven-plugin
Star 1.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fgit-commit-id%2Fgit-commit-id-maven-plugin
Code https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin
Issues 25 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues
Pull requests 6 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/pulls
Actions https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/actions
Projects 0 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/projects
Security 0 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/security
Insights https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/pulse
Code https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin
Issues https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues
Pull requests https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/pulls
Actions https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/actions
Projects https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/projects
Security https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/security
Insights https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/653
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/653
AheadBehindTest relies on defaultBranch=master in .gitconfighttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-maven-plugin/issues/653#top
bughttps://github.com/git-commit-id/git-commit-id-maven-plugin/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/jkylling
https://github.com/jkylling
jkyllinghttps://github.com/jkylling
on Oct 1, 2023https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/653#issue-1921000312
jkylling@32de0edhttps://github.com/jkylling/git-commit-id-maven-plugin/commit/32de0ed4d877359546837e2c0925a99fc22d9b4e
bughttps://github.com/git-commit-id/git-commit-id-maven-plugin/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.