mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Set up 'shakespeare.autosync' config for non-forked repositories
This commit is contained in:
1 file changed
+9
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user