leanprover / leanprover/lean4

`lake init` create a default `.git` directory with potientially wrong defaults

Open
#2,758 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Lake P-medium
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Using lake init or lake new creates a .git subdirectory with default options if
none exists. However this doesn't work in a mono-repo situation, and moreover git init is very often used with extra options (e.g. default branch is most often main and not master in modern times). I would suggest at least making this enabled with an explicit (and configurable) option.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation of the lake init and lake new entry points and how they create a .git directory. Determine how an explicit configurable option could control this behavior, including mono-repositories and extra git init options such as the default branch; done means the behavior no longer applies unwanted defaults and is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.