Set prj.vc to false if git is not in PATH (#18797)

This commit is contained in:
RHL120 2021-06-03 22:54:51 +02:00 committed by GitHub
parent ddb8114999
commit 642def0996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4014,11 +4014,12 @@ R_API int r_core_config_init(RCore *core) {
/* RVC */
{
char *p = r_file_path ("git");
bool found = (p && *p == 'g');
if (!found) {
if (strcmp (p, "git")) {
SETCB ("prj.vc.type", "git", &cb_prjvctype, "What should projects use as a vc");
} else {
//SETCB ("prj.vc.type", "rvc", &cb_prjvctype, "What should projects use as a vc"); //l8er
SETBPREF ("prj.vc", "false", "Use your version control system of choice (rvc, git) to manage projects");
/*The follwing is just a place holder*/
SETCB ("prj.vc.type", "rvc", &cb_prjvctype, "What should projects use as a vc");
}
free (p);
}