mitodl / mitodl/release-script
init_working_dir should reuse cloned git repos for efficiency
Open
Nobody has claimed this yet.
Tech Debt
- Dominant language
- Python
- Stars
- 16
- Forks
- 8
- Avg merge
- 11h 47m
- Merged PRs (30d)
- 2
Description
Currently init_working_dir will git clone each time it is used, which is frequently. Instead, we should have some known directory (/tmp/doof/repo-name-here for example) and:
- on the first call of
init_working_dirclone into that directory - on any future calls, clear away any changes in the git repo including commits made and fetch new changes
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the init_working_dir entry point and inspect how it is called for repository setup. Verify the current clone behavior first, then define the reuse flow described in the issue: clone on the first call, clear local changes and commits on later calls, and fetch new changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops, release
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100