Visitar URL original
Override `core.filemode=false` in wasm build by ianthomas23 · Pull Request #189 · QuantStack/git2cpp · GitHub
Skip to content

Override core.filemode=false in wasm build - #189

Merged
JohanMabille merged 2 commits into
mainfrom
wasm-ignore-filemode
Oct 7, 2026
Merged

JohanMabille merged 2 commits into
mainfrom
wasm-ignore-filemode

Conversation

@ianthomas23

Copy link
Copy Markdown
Member

This PR overrides the core.filemode config setting so that it is false in wasm builds. Without this, if you git clone a repo in JupyterLite that contains files with executable flags set, after refreshing the browser tab those file retrieved from the JupyterLite drive no longer have those executable flags set and are hence identified as changed.

The cockle emscripten filesystem does support storing of file permissions, it is only the JupyterLite shared drive that does not. The workaround here essentially means that wasm use of git2cpp is like on Windows where file permissions do not work via chmod. Longer term the correct fix for this is for the JupyterLite drive to fully support file permissions (and timestamps, etc).

@ianthomas23 ianthomas23 added the enhancement New feature or request label Oct 7, 2026
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.24%. Comparing base (d4542e3) to head (507e2f6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #189      +/-   ##
==========================================
- Coverage   88.35%   88.24%   -0.12%     
==========================================
  Files          63       64       +1     
  Lines        2997     3002       +5     
  Branches      376      376              
==========================================
+ Hits         2648     2649       +1     
- Misses        349      353       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ianthomas23

Copy link
Copy Markdown
Member Author

@ianthomas23

Copy link
Copy Markdown
Member Author

The code coverage is reduced as this change is in wasm-specific code and we do not check coverage for such code paths.

@JohanMabille
JohanMabille merged commit 36b094a into main Oct 7, 2026
7 of 8 checks passed
@JohanMabille
JohanMabille deleted the wasm-ignore-filemode branch October 7, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants