diff --git a/src/import.ts b/src/import.ts index 834c9f1..41e6b36 100644 --- a/src/import.ts +++ b/src/import.ts @@ -115,10 +115,6 @@ export async function grpp_startImport(cloneURL:string){ createLogEntry(langDatabase.import.setGitFetchAllRefs); runExternalCommand('git config remote.origin.fetch "+refs/*:refs/*"', { ...runExternalCommand_Defaults, chdir: repoPath }); }) - .then(function(){ - createLogEntry(grpp_convertLangVar(langDatabase.import.setPathSafe, [name])); - runExternalCommand(`git config --global --add safe.directory ${repoPath}`, { ...runExternalCommand_Defaults, chdir: originalCwd }); - }) .then(function(){ grpp_updateRepoData(`${urlData[2]}/${owner}/${name}`, currentRepo); createLogEntry(grpp_convertLangVar(langDatabase.import.cloneProcessComplete, [name, repoPath])); diff --git a/src/repair.ts b/src/repair.ts index 06f2ee8..f090eae 100644 --- a/src/repair.ts +++ b/src/repair.ts @@ -249,9 +249,6 @@ async function grpp_repairAddMissingRepo(path:string){ // Create log entry and start import process createLogEntry(grpp_convertLangVar(langDatabase.repair.importMissingRepo, [repoName, path])); await runExternalCommand('git config remote.origin.fetch "+refs/*:refs/*"', { ...runExternalCommand_Defaults, chdir: path }) - .then(function(){ - runExternalCommand(`git config --global --add safe.directory ${path}`, { ...runExternalCommand_Defaults, chdir: originalCwd }); - }) .then(function(){ grpp_updateRepoData(path.replace(process.cwd(), ''), repoData); importSuccessCounter++;