You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confess: I created a git repo using sourcetree instead of git init or RStudio. Apparently this can lead to a repo in which the .git directory does not contains a hooks subdirectory. Even after you've made a commit. So when I attempt to use devtools::use_readme_rmd(), I hit this code in use_git_hook() and get Error: This project doesn't use git. Apparently there are otherways to have a valid git repo and yet NOT have a hooks subdirectory.
I admit this maybe a rare phenomenon. Not sure if a different error message is the way to go or just outright creation of hooks.
The text was updated successfully, but these errors were encountered:
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Sep 18, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I confess: I created a git repo using sourcetree instead of
git init
or RStudio. Apparently this can lead to a repo in which the.git
directory does not contains ahooks
subdirectory. Even after you've made a commit. So when I attempt to usedevtools::use_readme_rmd()
, I hit this code inuse_git_hook()
and getError: This project doesn't use git
. Apparently there are other ways to have a valid git repo and yet NOT have ahooks
subdirectory.I admit this maybe a rare phenomenon. Not sure if a different error message is the way to go or just outright creation of
hooks
.The text was updated successfully, but these errors were encountered: