Initialization in a subdirectory does not create .gitignore
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
Please run the following script in an empty directory:
#!/bin/sh
rm -rf test
git init test
cd test
mkdir dummy; cd dummy
Rscript --vanilla -e "options(repos=c(CRAN='http://cran.rstudio.com')); packrat::init()"
ls .gitignore
If the line mkdir dummy; cd dummy is not run, .gitignore is properly created.
What mechanism is used to detect if the project is under version control?
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
Start by running the provided shell script and tracing the packrat::init() entry point when called from the subdirectory. Determine how version-control state is detected and what prevents .gitignore from being created; done means initialization creates .gitignore in the reproduced project layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100