Skip to content

consider git metadata on 'create' #210

@refack

Description

@refack

Refs: https://mobile.twitter.com/izs/status/1115332210381299712

When checking out a git repository in Windows, some FS metadata is lost due to mismatch between the WIN32 and POSIX APIs. Specifically the file mode (but also uid, gid, and some of the time stamps).

refael@refaelux MINGW64 /d/code/node (mode-test)
$ ls -la r.sh
-rw-r--r-- 1 refael 197609 0 Apr  8 15:57 r.sh
^^^^^^^^^^

But git still stores this info

refael@refaelux MINGW64 /d/code/node (mode-test)
$ git ls-files r.sh --stage
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0       r.sh
^^^^^^

The code at https://github.com/npm/node-tar/blob/d7268f65123780031e58120f55f28b87ae0c9608/lib/write-entry.js#L331-L334
Could consider this info to "enrich" the created tarball.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions