Skip to content

Pushing to GitHub via WebApp clobbers file mode #832

@kilyanni

Description

@kilyanni

Description

As per title; pushing via the Typst WebApp erases file modes (e.g. turning executable script files non-executable). This occurs whether the file was touched or not.

Steps to reproduce:

  • Make a GitHub repository
  • Add some files, some of which are executable (e.g. chmod +x *.sh)
  • Import to Typst
  • Make any kind of change via the WebApp (whether it touches the executables or not)
  • Push changes via WebApp
  • Inspect commit (you should see something like mode change 100755 => 100644 script.sh)

As example; here is a commit where this happens: kilyanni/typst-webapp-mode-bug-repro@12fe265

Expected behavior:
Mode should stay unchanged

Reproduction URL

No response

Browsers

Firefox

OS

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions