RStudio in Azure VM will pull from repo when creating project, will not then recognize it in Git tab

I spun up an Azure VM with RStudio and Git installed.
I then used File -> New Project -> Version Control -> Git to clone a project from an azure devops repo.

The project is created successfully, and all files are downloaded. So far, so good.

However none of the options in the Git tab are enabled. It does not track any changes, I cannot pull or commit/push. It does not list any of the remote branches, and it does not show me what branch I am currently working on.

When I try to click anything on that tab, it gives me an error tat says "The directory name is invalid". I made sure the directory name has no spaces, special characters, etc. It's C:/Users/dfphd/Projects/ProjectName

I tried re-installing rstudio and git (installed git first, then rstudio), and it still does not work.

When I look at the logs, it gives me the following errors:

29 Jan 2020 15:10:59 [rsession-dfphd] ERROR system error 267 (The directory name is invalid); OCCURRED AT: auto __cdecl rstudio::core::system::ChildProcess::run::<lambda_1803a13b985ab42b5095d14577da4f75>::operator ()(void) const C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\core\system\Win32ChildProcess.cpp:546; LOGGED FROM: class rstudio::core::Error __cdecl rstudio::session::modules::git::anonymous-namespace'::Git::listRemotes(class std::vector<class json_spirit::Value_impl<struct json_spirit::Config_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,class std::allocator<class json_spirit::Value_impl<struct json_spirit::Config_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > > *) C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\session\modules\SessionGit.cpp:715 29 Jan 2020 15:10:59 [rsession-dfphd] ERROR system error 267 (The directory name is invalid); OCCURRED AT: auto __cdecl rstudio::core::system::ChildProcess::run::<lambda_1803a13b985ab42b5095d14577da4f75>::operator ()(void) const C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\core\system\Win32ChildProcess.cpp:546; LOGGED FROM: class rstudio::core::Error __cdecl rstudio::session::modules::git::anonymous-namespace'::vcsListRemotes(const struct rstudio::core::json::JsonRpcRequest &,class rstudio::core::json::JsonRpcResponse *) C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\session\modules\SessionGit.cpp:2086
29 Jan 2020 15:11:40 [rsession-dfphd] ERROR system error 267 (The directory name is invalid); OCCURRED AT: auto __cdecl rstudio::core::system::ChildProcess::run::<lambda_1803a13b985ab42b5095d14577da4f75>::operator ()(void) const C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\core\system\Win32ChildProcess.cpp:546; LOGGED FROM: class rstudio::core::Error __cdecl rstudio::session::modules::git::anonymous-namespace'::Git::listRemotes(class std::vector<class json_spirit::Value_impl<struct json_spirit::Config_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,class std::allocator<class json_spirit::Value_impl<struct json_spirit::Config_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > > *) C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\session\modules\SessionGit.cpp:715 29 Jan 2020 15:11:40 [rsession-dfphd] ERROR system error 267 (The directory name is invalid); OCCURRED AT: auto __cdecl rstudio::core::system::ChildProcess::run::<lambda_1803a13b985ab42b5095d14577da4f75>::operator ()(void) const C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\core\system\Win32ChildProcess.cpp:546; LOGGED FROM: class rstudio::core::Error __cdecl rstudio::session::modules::git::anonymous-namespace'::vcsListRemotes(const struct rstudio::core::json::JsonRpcRequest &,class rstudio::core::json::JsonRpcResponse *) C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\session\modules\SessionGit.cpp:2086

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.