René's URL Explorer Experiment


Title: Contributing · gitpython-developers/GitPython · Discussion #1615 · GitHub

Open Graph Title: Contributing · gitpython-developers/GitPython · Discussion #1615

X Title: Contributing · gitpython-developers/GitPython · Discussion #1615

Description: Contributing

Open Graph Description: While trying to create a PR, I got a bit confused. init-tests-after-clone.sh checks out master (not main) and then goes on to do some weird git reset --hard dance. What is that about? Do we even ne...

X Description: While trying to create a PR, I got a bit confused. init-tests-after-clone.sh checks out master (not main) and then goes on to do some weird git reset --hard dance. What is that about? Do we even ne...

Opengraph URL: https://github.com/gitpython-developers/GitPython/discussions/1615

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Contributing","text":"

While trying to create a PR, I got a bit confused.

\n\n

This is with python 3.11.3 and git 2.41.0.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"
\n

init-tests-after-clone.sh checks out master (not main) and then goes on to do some weird git reset --hard dance. What is that about? Do we even need the master branch still or should it be deleted?

\n
\n

That's an interesting observation, I wasn't quite aware that master was still used there. However, and despite confusing, I think it's for the better to use a stale branch for the state used in the test suite as it is stable (now, that we have main).

\n

The init-tests-after-clone.sh was run, it should be OK to switch back to another branch. The resets are to create a ref-log history for the master branch, which hopefully is effective even if it's not checked out for the tests that care.

\n
\n

I am getting a lot of errors with mypy. Most of them are in git/ext/gitdb, but there are some elsewhere also. Is this expected?

\n
\n

I really don't know, I don't run python or the tests locally and really don't know what's going on, what should or shouldn't be with mypy. Some contributors wanted it, and now it's there, and probably ever changing.

\n
\n

When running black, it also formats code in submodules and causes a lot of changes. Should we exclude those directories?

\n
\n

I have never heard of the tool, but that means nothing. If black is the new way of doing things and tools-specific configuration would help, it could certainly be contributed.

\n

This goes, of course, for all improvements that can be done to facilitate contributions or clean things up. I can understand that this isn't always possible, and in that case recommend creating a PR with the desired change and see what CI has to say about it.
\nThanks for your understanding, I know for most questions I couldn't give an answer.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1615#discussioncomment-6466478"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:813d4de7-1936-4489-ad8c-d7b3752c0550
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idB46C:2A268:12D2BFE:1A39726:6968AF6E
html-safe-nonce498c1682e46b52eed204c991982dcb81be4af838a6353370cfcbdfeee11da8a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDZDOjJBMjY4OjEyRDJCRkU6MUEzOTcyNjo2OTY4QUY2RSIsInZpc2l0b3JfaWQiOiI0NTIzMjM0MjAwOTgxNjQ3MjE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbf855e9def57b679778faf548d8b030ba4a25950c7b4c4a5bde3b6cae0a68984
hovercard-subject-tagdiscussion:5410113
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/gitpython-developers/GitPython/1615/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/fe0ac6a08a647e00bca0cddc5cc537b336e0d2f1ba7f927dc72de38e51ed472b/gitpython-developers/GitPython/discussions/1615
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fe0ac6a08a647e00bca0cddc5cc537b336e0d2f1ba7f927dc72de38e51ed472b/gitpython-developers/GitPython/discussions/1615
og:image:altWhile trying to create a PR, I got a bit confused. init-tests-after-clone.sh checks out master (not main) and then goes on to do some weird git reset --hard dance. What is that about? Do we even ne...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
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
release3223a6503d318917691422cdadfbe16cd8fb21e5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/discussions/1615#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1615
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1615
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1615
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1615
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1615
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1615
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1615
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Answered https://github.com/gitpython-developers/GitPython/discussions/1615#discussioncomment-6466478
Byronhttps://github.com/Byron
bodograumann https://github.com/bodograumann
Q&Ahttps://github.com/gitpython-developers/GitPython/discussions/categories/q-a
Contributing https://github.com/gitpython-developers/GitPython/discussions/1615#top
bodograumann https://github.com/bodograumann
Answered https://github.com/gitpython-developers/GitPython/discussions/1615#discussioncomment-6466478
Byronhttps://github.com/Byron
Return to tophttps://github.com/gitpython-developers/GitPython/discussions/1615#top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1615
https://github.com/gitpython-developers/GitPython/discussions/1615
bodograumann https://github.com/bodograumann
Jul 17, 2023 https://github.com/gitpython-developers/GitPython/discussions/1615#discussion-5410113
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1615
Byron https://github.com/Byron
Jul 17, 2023 https://github.com/gitpython-developers/GitPython/discussions/1615#discussioncomment-6466478
View full answer https://github.com/gitpython-developers/GitPython/discussions/1615#discussioncomment-6466478
Oldest https://github.com/gitpython-developers/GitPython/discussions/1615?sort=old
Newest https://github.com/gitpython-developers/GitPython/discussions/1615?sort=new
Top https://github.com/gitpython-developers/GitPython/discussions/1615?sort=top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1615
https://github.com/gitpython-developers/GitPython/discussions/1615
Byron https://github.com/Byron
Jul 17, 2023 https://github.com/gitpython-developers/GitPython/discussions/1615#discussioncomment-6466478
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1615
Byronhttps://github.com/Byron
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1615
🙏 Q&A https://github.com/gitpython-developers/GitPython/discussions/categories/q-a
https://github.com/bodograumann
https://github.com/Byron
https://github.com/gitpython-developers/GitPython/discussions/1615
https://github.com/settings/replies?return_to=1
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.