I tried to upgrade our 3.4 installation to 3.5 via git, but have run into a problem. I was able to pull the latest weekly release of 3.4 with "sudo git pull" and everything went smoothly. After that, I tried upgrading to 3.5. I ran "git branch -a" which showed all of the branches. Then I ran "git checkout MOODLE_35_STABLE" which threw the following errors:
error: unable to unlink old 'auth/mnet/classes/privacy/provider.php' (Permission denied)
error: unable to unlink old 'course/classes/privacy/provider.php' (Permission denied)
fatal: cannot create directory at 'enrol/cohort/classes/task': Permission denied
Realizing that I didn't run it with sudo permissions I then ran "sudo git checkout MOODLE_35_STABLE". Then I ran into the following error:error: Your local changes to the following files would be overwritten by checkout:
.eslintignore
.stylelintignore
.travis.yml
Gruntfile.js
...error: The following untracked working tree files would be overwritten by checkout:
admin/roles/classes/allow_view_page.php
admin/searchreindex.php
...Aborting
Hoping that it hadn't made any changes I tried to revert back to the 3.4 branch with "git checkout MOODLE_34_STABLE". Which looked like it undid any changes:M .eslintignore
M .stylelintignore
M .travis.yml
M Gruntfile.js
...Already on 'MOODLE_34_STABLE'
Your branch is up-to-date with 'origin/MOODLE_34_STABLE'.
Thinking that everything should be good I ran "sudo git pull" to make sure that everything is good and got "Already up-to-date.".Now when I log in to moodle with the admin account I get a page staying that a bunch of plugins need to be updated. I ran into a bunch of problems upgrading to 3.4 since it required php 7.0+ and don't want to mess up moodle again. Did I mess something up by inconsistently using sudo and how can I properly upgrade to 3.5 or revert to 3.4?