Skip to content

Commit 8232d9d

Browse files
committed
Merge branch 'debug-update-mail-to-commit-notes'
2 parents 0364d54 + 63163bc commit 8232d9d

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

lib/ci-helper.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,23 @@ export class CIHelper {
271271
},
272272
);
273273
console.timeEnd("fetch Git notes");
274+
console.time("forcing `gitgitgadget` notes refs back in time");
275+
await git(["update-ref", "refs/notes/gitgitgadget", "07cbd089352a850817060742d649adb4c4c99445"], {
276+
workDir: this.workDir,
277+
});
278+
console.timeEnd("forcing `gitgitgadget` notes refs back in time");
279+
if (setupOptions?.needsMailToCommitNotes) {
280+
console.time("forcing `commit-to-mail` notes refs back in time");
281+
await git(["update-ref", "refs/notes/commit-to-mail", "de5f0ffd77eabc913e560acb4f3303b6e3df4163"], {
282+
workDir: this.workDir,
283+
});
284+
console.timeEnd("forcing `commit-to-mail` notes refs back in time");
285+
console.time("forcing `mail-to-commit` notes refs back in time");
286+
await git(["update-ref", "refs/notes/mail-to-commit", "92b87ef409b0858d188a371a6af30aa477bc549f"], {
287+
workDir: this.workDir,
288+
});
289+
console.timeEnd("forcing `mail-to-commit` notes refs back in time");
290+
}
274291
this.gggNotesUpdated = true;
275292
if (setupOptions?.needsUpstreamBranches) {
276293
console.time("fetch upstream branches");

script/lookup-commit.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ update_gitgit_dir () {
6868
git -C "$GITGIT_DIR" fetch $git_remote refs/notes/commit-to-mail:refs/notes/commit-to-mail ||
6969
die "Could not update refs/notes/commit-to-mail"
7070

71+
git -C "$GITGIT_DIR" update-ref refs/notes/commit-to-mail de5f0ffd77eabc913e560acb4f3303b6e3df4163
72+
git -C "$GITGIT_DIR" update-ref refs/notes/mail-to-commit 92b87ef409b0858d188a371a6af30aa477bc549f
73+
7174
if git -C "$GITGIT_DIR" rev-parse --verify refs/remotes/upstream/seen >/dev/null 2>&1
7275
then
7376
# Let's take 'seen' from the official source at git.git.

script/update-mail-to-commit-notes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ update_gitgit_dir () {
2323
git clone $git_remote "$GITGIT_DIR" ||
2424
die "Could not clone $git_remote to $GITGIT_DIR"
2525

26-
git -C "$GITGIT_DIR" fetch $git_remote \
26+
echo git -C "$GITGIT_DIR" fetch $git_remote \
2727
refs/notes/mail-to-commit:refs/notes/mail-to-commit ||
2828
die "Could not update notes"
2929
}

0 commit comments

Comments
 (0)