-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can rprojroot handle separated git directories? #24
Comments
Thanks, a PR would be great. In which lines of the |
I think it's always created as a one-line file, but I'm not positive. (Here's the source.)
|
- Adapt to testthat 2.0.0. - New `thisfile()`, moved from kimisc (#8). - Add more examples to vignette (#26, @BarkleyBG). - Detect `.git` directories created with `git clone --separate-git-dir=...` (#24, @karldw).
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
Git allows you to separate the .git folder from the project. For example:
git clone --separate-git-dir="$HOME/my_rprojroot.git" git@github.com:krlmlr/rprojroot.git
After running the command above, I have a .git file in the cloned rprojroot directory, which rprojroot doesn't recognize as a project criterion.
Could rprojroot handle separated git directories? One option would be changing the code to:
If that sounds good, I can pull together a PR.
The text was updated successfully, but these errors were encountered: