Git status shows all files changed after fresh install

Hello,
I did a fresh install on digital ocean using command “python install.py --production --user frappe”.
Now i was hoping that when i go to apps/frappe and apps/erpnext folders, i would see that my git status is clean. No git changes, as i have not modified anything.

But i see that all files show up as modified, when i do git status. And ready to be staged.

I checked if the user permission is a problem, but they show as frappe user permissions.

root@stage2:/home/frappe/frappe-bench/apps/erpnext# ls -lrt
total 84
-rwxr-xr-x 1 frappe frappe 5049 Mar 3 10:38 README.md
-rwxr-xr-x 1 frappe frappe 532 Mar 3 10:38 MANIFEST.in
-rwxr-xr-x 1 frappe frappe 0 Mar 3 10:38 init.py

I checked what is the diff on each file, using git diff. Thought it does not show any code changes, it shows below diff
diff --git a/erpnext/accounts/README.md b/erpnext/accounts/README.md
old mode 100644
new mode 100755

So my query is

  1. Is this normal. Is there anyway to get a clean slate (no git changes), after install.
  2. If i do a bench update/upgrade, will it update properly.
  3. If i do a git pull , in erpnext folder, to get the latest, it will complain that there are uncommited changes. How to move forward, if i just want to do a git update and not a bench update.

Please let me know.

What files have been modified?

I think all the files show up as modified. I am copy pasting some of the modified files,

root@stage2:/home/frappe/frappe-bench/apps/frappe#
root@stage2:/home/frappe/frappe-bench/apps/frappe# git status

Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

    modified:   .eslintignore
    modified:   .eslintrc
    modified:   .github/CONTRIBUTING.md
    modified:   .github/ISSUE_TEMPLATE.md
    modified:   .github/frappe-bird.png
    modified:   .gitignore
    modified:   .travis.yml
    modified:   CODE_OF_CONDUCT.md
    modified:   LICENSE
    modified:   MANIFEST.in
    modified:   README.md
    modified:   attributions.md
    modified:   ci/my_config.h.patch
    modified:   frappe-html-plugin.js
    modified:   frappe/__init__.py
    modified:   frappe/api.py
    modified:   frappe/app.py
    modified:   frappe/async.py
    modified:   frappe/auth.py
    modified:   frappe/boot.py
    modified:   frappe/build.js
    modified:   frappe/build.py
    modified:   frappe/change_log/__init__.py
    modified:   frappe/change_log/current/readme.md
    modified:   frappe/change_log/v10/v10_0_0.md

modified: frappe/change_log/v8/v8_8_0.md
modified: frappe/chat/init.py
modified: frappe/chat/doctype/init.py
modified: frappe/chat/doctype/chat_message/init.py
modified: frappe/chat/doctype/chat_message/chat_message.js
modified: frappe/chat/doctype/chat_message/chat_message.json

   modified:   frappe/config/desktop.py
    modified:   frappe/config/docs.py
    modified:   frappe/config/integrations.py
    modified:   frappe/config/setup.py
    modified:   frappe/config/tools.py


    modified:   frappe/core/doctype/data_import/data_import.js
    modified:   frappe/core/doctype/data_import/data_import.json
    modified:   frappe/core/doctype/data_import/data_import.py
    modified:   frappe/core/doctype/data_import/data_import_list.js


 modified:   frappe/core/doctype/payment_gateway/payment_gateway.py
    modified:   frappe/core/doctype/payment_gateway/test_payment_gateway.js
    modified:   frappe/core/doctype/payment_gateway/test_payment_gateway.py
    modified:   frappe/core/doctype/report/README.md
    modified:   frappe/core/doctype/report/__init__.py
    modified:   frappe/core/doctype/report/boilerplate/controller.js
    modified:   frappe/core/doctype/report/boilerplate/controller.py
    modified:   frappe/core/doctype/report/report.js
    modified:   frappe/core/doctype/report/report.json

If i do a git diff on one of the files, it shows up as below

root@stage2:/home/frappe/frappe-bench/apps/frappe# git diff frappe/core/doctype/role_profile/role_profile.json
diff --git a/frappe/core/doctype/role_profile/role_profile.json b/frappe/core/doctype/role_profile/role_profile.json
old mode 100644
new mode 100755
root@stage2:/home/frappe/frappe-bench/apps/frappe#

Hmm. Odd! @codingCoffee, is this an issue that the build does?

@achillesrasquinha it’s a genuine issue. I’ll fix it and send a PR ASAP.

@kothagunda try bench update --reset for now

Thanks @codingCoffee and @achillesrasquinha.
Appreciate your quick response.