FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Override `core.filemode=false` in wasm build by ianthomas23 · Pull Request #189 · QuantStack/git2cpp · GitHub

Repository navigation

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

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 added the enhancement New feature or request label Oct 7, 2026

codecov Bot commented Oct 7, 2026 •
edited
Loading

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.

Copy link
Copy Markdown
Member Author

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 merged commit 36b094a into main Oct 7, 2026
7 of 8 checks passed
JohanMabille deleted the wasm-ignore-filemode branch October 7, 2026 13:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL