Skip to content

Conversation

ThomasMichael1811
Copy link
Contributor

No description provided.

@ThomasMichael1811 ThomasMichael1811 force-pushed the feature/refactor_content_hooks branch 3 times, most recently from be1e280 to e398308 Compare August 21, 2025 10:37
@schnatterer schnatterer marked this pull request as ready for review August 21, 2025 10:47
@schnatterer schnatterer changed the title Feature/refactor content hooks Content Repos: Refactoring + Fixes Aug 21, 2025
@ThomasMichael1811 ThomasMichael1811 force-pushed the feature/refactor_content_hooks branch 6 times, most recently from 476b032 to 3555002 Compare August 26, 2025 09:49
@schnatterer schnatterer force-pushed the feature/refactor_content_hooks branch from 3555002 to 84b5866 Compare August 26, 2025 10:04
Thomas Michael and others added 6 commits August 26, 2025 12:35
add test repo for type mirror
reduce mockBehavior tests
rename nonFolder to copy
disable git gc for test
clean cache at start
MIRROR mode had two flaws:

Source repos without main branch ended up with a main branch.

Source repos with default branch != main:
Main was not mirrored but only contained a README (created by SCMM
init).

Without the main Branch ScmmRepo.clone() ran into errors because it
explicitly checked out main.
Turn out without setNoCheckout(true) this is not possible.
setNoCheckout(true) lead to all files being marked as deleted right
after git clone.
Without it, the default branch is checkout out just like "git clone" on CLI.
@schnatterer schnatterer force-pushed the feature/refactor_content_hooks branch from 84b5866 to 62531f0 Compare August 26, 2025 10:35
@schnatterer schnatterer merged commit cd0abc6 into main Aug 26, 2025
1 check passed
@schnatterer schnatterer deleted the feature/refactor_content_hooks branch August 26, 2025 13:13
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.

2 participants