Add Nostr clone test

This commit is contained in:
Alex Gleason committed 2025-12-25 23:01:58 -06:00
1 parent 54c89f03c7
commit adcd87cb64
2 files changed
+151 -11

No files matched your search

+13 -11
View File
@@ -786,18 +786,20 @@ export class Git {
// Update refs based on fetched state
for (const [name, val] of state?.tags ?? []) {
const symbolic = val.startsWith('ref: ');
const value = symbolic ? this.toRemoteRef(val.substring(5), remote) : val;
const ref = this.toRemoteRef(name, remote);
if (name === 'HEAD' || name.startsWith('refs/')) {
const symbolic = val.startsWith('ref: ');
const value = symbolic ? this.toRemoteRef(val.substring(5), remote) : val;
const ref = this.toRemoteRef(name, remote);
await git.writeRef({
fs: this.fs,
dir: options.dir,
ref,
value,
symbolic,
force: true,
});
await git.writeRef({
fs: this.fs,
dir: options.dir,
ref,
value,
symbolic,
force: true,
});
}
}
return result;