Skip to content

Merge mscodehub/main to restore mirror ancestry (fixes #116)#117

Closed
jshigetomi wants to merge 9 commits intoPowerShell:mainfrom
jshigetomi:restore-mscodehub-ancestry
Closed

Merge mscodehub/main to restore mirror ancestry (fixes #116)#117
jshigetomi wants to merge 9 commits intoPowerShell:mainfrom
jshigetomi:restore-mscodehub-ancestry

Conversation

@jshigetomi
Copy link
Copy Markdown
Contributor

Problem

The previous PR (#115) that brought mscodehub-only commits into upstream/main was squash-merged (resulting in commit 8f47b9c), which discarded the parent pointer to mscodehub/main. As a result the AzDO → GitHub fast-forward mirror still sees the branches as divergent and refuses to push, blocking the code-flow pipeline.

This is tracked in #116.

Fix

This is a no-op merge using the -s ours strategy:

  • Keeps upstream/main's tree exactly as-is — no file changes (verified with git diff upstream/main HEAD → empty).
  • Records mscodehub/main (87175cb) as a second parent so it becomes an ancestor of upstream/main again.

After this is merged, mscodehub/main will be reachable from the new main tip, and the fast-forward mirror can push cleanly.

⚠️ Merge instructions

This PR must be merged with "Create a merge commit". Do not squash and do not rebase — either of those will discard the parent pointer to mscodehub/main and we will be right back where we started.

Resolves #116

andyleejordan and others added 9 commits January 24, 2025 16:36
Blank commit to fix OneBranch through PR validation
…ll module versions (PowerShell#112)

Use `RequiredResource` hashtable to specify PowerShell module versions (PowerShell#112)
The previous PR that brought mscodehub-only commits into upstream/main
was squash-merged (commit 8f47b9c), which discarded the parent pointer
to mscodehub/main. As a result the AzDO -> GitHub fast-forward mirror
still sees the branches as divergent and refuses to push, blocking the
code-flow pipeline.

This is a no-op merge (-s ours): it keeps upstream/main's tree exactly
as-is and only records mscodehub/main (87175cb) as a second parent so
that mscodehub/main becomes an ancestor of upstream/main again. After
this is merged with the "Create a merge commit" option (NOT squash and
NOT rebase), the mirror can fast-forward cleanly.

Resolves PowerShell#116

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jshigetomi jshigetomi closed this Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dnceng-bot] Branch SecretStore/main can't be mirrored to Azdo fast forward branch

2 participants