Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files modified on a fresh clone of repository #2

Open
geoffwozniak-mchp opened this issue Apr 21, 2022 · 0 comments
Open

Files modified on a fresh clone of repository #2

geoffwozniak-mchp opened this issue Apr 21, 2022 · 0 comments

Comments

@geoffwozniak-mchp
Copy link

When the repository is cloned on Linux (Ubuntu 20.04), some files are considered modified immediately.

% uname -a
Linux ubuntu-20 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

% git clone [email protected]:Microchip-MPLAB-Harmony/wireless_apps_pic32mzw1_wfi32e01.git
Cloning into 'wireless_apps_pic32mzw1_wfi32e01'...
Warning: Permanently added the ECDSA host key for IP address '140.82.113.3' to the list of known hosts.
remote: Enumerating objects: 7661, done.
remote: Counting objects: 100% (7661/7661), done.
remote: Compressing objects: 100% (3081/3081), done.
remote: Total 7661 (delta 4585), reused 7258 (delta 4185), pack-reused 0
Receiving objects: 100% (7661/7661), 40.78 MiB | 2.97 MiB/s, done.
Resolving deltas: 100% (4585/4585), done.
Updating files: 100% (11140/11140), done.

% cd wireless_apps_pic32mzw1_wfi32e01

% git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   docs/apps/wifi_ota_app_upgrade/images/Change_dir.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/abstraction_model.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/http_server.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/json_parse_logic.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/ota_service_conf.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/project_loading.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/project_loading_1.PNG
        modified:   docs/apps/wifi_ota_app_upgrade/images/project_loading_2.PNG
        modified:   docs/apps/wifi_touch_demo/images/sample_demo_run.PNG
        modified:   docs/apps/wifi_touch_demo/images/touch_regen_issue.PNG

no changes added to commit (use "git add" and/or "git commit -a")

Running git reset --hard HEAD has no effect. This is because the .gitattributes file is matching on lowercase file extensions and thus misses the ones with uppercase extensions, namely the ones above (and others that just so happen not to change).

It looks like the .gitattributes file should contain matches for both lower and uppercase file extensions (or the files and all references should be changed to lowercase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant