Merge pull request #110 from unraid/fix-corrupted-git-folder

fix: clean up corrupted git folder on activate
This commit is contained in:
Eric Schultz
2021-02-22 17:28:39 -07:00
committed by GitHub
+1 -1
View File
@@ -1411,7 +1411,7 @@ if (!file_exists('/root/.ssh/known_hosts') || strpos(file_get_contents('/root/.s
}
// blow away existing repo if reinit command
if ($command == 'reinit' && file_exists('/boot/.git')) {
if ( ($command == 'activate' || $command == 'reinit') && file_exists('/boot/.git')) {
exec_log('rm -rf /boot/.git');
}