Git::RepoBase::repo_base_dir is often nil in development.
I suspect this is an issue with the Rails constant autoloading, which means the Git::RepoBase is "reset" when the constants are reloaded in dev, but initializers are not recalled, so the cattr is set to nil.
I think we should consider just directly accessing Rails.application.config_for("repos")["base_dir"] from within the class, or something similar.
Git::RepoBase::repo_base_dir
is oftennil
in development.I suspect this is an issue with the Rails constant autoloading, which means the
Git::RepoBase
is "reset" when the constants are reloaded in dev, but initializers are not recalled, so the cattr is set to nil.I think we should consider just directly accessing
Rails.application.config_for("repos")["base_dir"]
from within the class, or something similar.