Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Can rprojroot handle separated git directories? #24
Git allows you to separate the .git folder from the project. For example:
git clone --separate-git-dir="$HOME/my_rprojroot.git" email@example.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:
is_git_root <- has_dir(".git") | has_file(".git", contents = "^gitdir: ")
If that sounds good, I can pull together a PR.
I think it's always created as a one-line file, but I'm not positive. (Here's the source.)