Set up 'shakespeare.autosync' config for non-forked repositories

This commit is contained in:
Alex Gleason committed 2025-12-29 18:08:32 -06:00
1 parent 02cc069ff8
commit dff3497ba6
1 file changed
+9
+9
View File
@@ -522,6 +522,15 @@ export class ProjectsManager {
remote: fork ? 'upstream' : undefined, // Use 'upstream' for forks, otherwise defaults to 'origin'
});
if (!fork) {
// Set up 'shakespeare.autosync' config for non-forked repositories
await this.git.setConfig({
dir: projectPath,
path: 'shakespeare.autosync',
value: 'true',
});
}
// Get filesystem stats for timestamps
const stats = await this.fs.stat(projectPath);
const timestamp = stats.mtimeMs ? new Date(stats.mtimeMs) : new Date();