Datenbank bereinigt / Gitea-Integration gefixt
Dieser Commit ist enthalten in:
committet von
Server Deploy
Ursprung
395598c2b0
Commit
c21be47428
@ -21,6 +21,11 @@ function windowsToContainerPath(windowsPath) {
|
||||
return windowsPath;
|
||||
}
|
||||
|
||||
// Spezialfall: TaskMate-Verzeichnis ist als /app/taskmate-source gemountet
|
||||
if (windowsPath === '/home/claude-dev/TaskMate') {
|
||||
return '/app/taskmate-source';
|
||||
}
|
||||
|
||||
// Windows-Pfad konvertieren (z.B. "C:\foo" oder "C:/foo")
|
||||
const normalized = windowsPath.replace(/\\/g, '/');
|
||||
const match = normalized.match(/^([a-zA-Z]):[\/](.*)$/);
|
||||
@ -73,8 +78,12 @@ function isGitRepository(localPath) {
|
||||
const containerPath = windowsToContainerPath(localPath);
|
||||
try {
|
||||
const gitDir = path.join(containerPath, '.git');
|
||||
return fs.existsSync(gitDir);
|
||||
logger.info(`Git-Repository Check: ${localPath} -> ${containerPath} -> ${gitDir}`);
|
||||
const exists = fs.existsSync(gitDir);
|
||||
logger.info(`Git directory exists: ${exists}`);
|
||||
return exists;
|
||||
} catch (error) {
|
||||
logger.error(`Git-Repository Check failed: ${error.message}`);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren