Bench Update v7.0 Error

I am updating erpnext from v7.0 to the new version
but while bench update i am getting error “bench.utils.CommandFailedError: git pull upstream master”
So, i exceuted below commands
‘cd /home/frappe/.bench
git reset --hard
git pull
cd /home/frappe/frappe-bench
bench update’
but while executing
“git reset --hard” inside “cd /home/frappe/.bench” directory
i m getting error
“fatal: Not a git repository (or any of the parent directories): .git”
How can i make it a git repository???

Hi @Varna

When I had this issue, running git reset on frappe and erpnext directory fixed it.

cd apps/frappe
git reset --hard

cd apps/erpnext
git reset --hard

Hi @Varna,

Seems your app is on different branch than master, please check the branch name of your applications

hi @rohit_w
I checked my git banch… it is on master only

Hi @Varna,

can you share the output of the following commands
git branch
git remote -v

hi @rohit_w
i have attached the error msg output & the output of the above mentioned commands
I ran bench update command inside apps/erpnext

For me it solved the problem:

cd apps/frappe
git reset --hard
cd -
cd apps/erpnext
git reset --hard
cd -
bench switch-to-master

hope it helps