Skip to content

jj split of a newly added executable file does not commit file as executable #3846

@spectral54

Description

@spectral54

Description

Steps to Reproduce the Problem

$ jj git init
$ echo hi > executable_file && chmod +x executable_file
$ echo hi > other_file
$ jj split        # pick only executable_file
$ jj status
Working copy changes:
M executable_file
A some_other_file
Working copy : ysmvmwqx edefcfd6 (no description set)
Parent commit: zosvqltr 1fca1963 Commit executable file
$ jj diff
Non-executable file became executable at executable_file:
Added regular file some_other_file:
        1: hi

Expected Behavior

Files committed via jj split should also commit their metadata changes (such as +x).

Actual Behavior

The file contents are committed, but not the metadata

Specifications

  • Platform: Linux
  • Version: jj google-0.17.1-jj-client_20240528_00_RC00

Metadata

Metadata

Assignees

No one assigned

    Labels

    scm-recordIssues relating to the scm-record library, used as the default interactive diff/merge editor.🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions