| … | … | @@ -282,9 +282,13 @@ export class GitSyncClientManager { |
| 282 | 282 | const entries = await fs.promises.readdir(this.reposDir) |
| 283 | 283 | for (const entry of entries) { |
| 284 | 284 | if (!entry.endsWith('.git')) continue |
| 285 | const repoPath = path.join(this.reposDir, entry) | |
| 286 | // Skip repos with .pear-git-ignore marker | |
| 287 | const ignored = await fs.promises.stat(path.join(repoPath, '.pear-git-ignore')).catch(() => null) | |
| 288 | if (ignored) continue | |
| 285 | 289 | const repoName = entry.replace(/\.git$/, '') |
| 286 | 290 | try { |
| 287 | const refs = await this._readRefs(path.join(this.reposDir, entry)) | |
| 291 | const refs = await this._readRefs(repoPath) | |
| 288 | 292 | const hashRefs = {} |
| 289 | 293 | for (const [ref, val] of Object.entries(refs)) { |
| 290 | 294 | if (ref === 'HEAD') continue |
| … | … | @@ -279,9 +279,13 @@ export class GitSyncManager { |
| 279 | 279 | const entries = await fs.promises.readdir(this.reposDir) |
| 280 | 280 | for (const entry of entries) { |
| 281 | 281 | if (!entry.endsWith('.git')) continue |
| 282 | const repoPath = path.join(this.reposDir, entry) | |
| 283 | // Skip repos with .pear-git-ignore marker | |
| 284 | const ignored = await fs.promises.stat(path.join(repoPath, '.pear-git-ignore')).catch(() => null) | |
| 285 | if (ignored) continue | |
| 282 | 286 | const repoName = entry.replace(/\.git$/, '') |
| 283 | 287 | try { |
| 284 | const refs = await this._readRefs(path.join(this.reposDir, entry)) | |
| 288 | const refs = await this._readRefs(repoPath) | |
| 285 | 289 | const hashRefs = {} |
| 286 | 290 | for (const [ref, val] of Object.entries(refs)) { |
| 287 | 291 | if (ref === 'HEAD') continue |
| … | … | @@ -955,7 +955,7 @@ async function handleDeleteRepo(req, res, server) { |
| 955 | 955 | // Remove from MetadataBase (prevents federation peers from re-creating it) |
| 956 | 956 | if (server.metadataBase) { |
| 957 | 957 | try { |
| 958 | await server.metadataBase.del('repo', repoName) | |
| 958 | await server.metadataBase.del(`repo:${repoName}`) | |
| 959 | 959 | } catch (err) { |
| 960 | 960 | // Ignore — may not exist |
| 961 | 961 | } |