Try ERPNext Buy Support Partners Foundation

ERPNext Version 12 Upgrade Issue Solved

Continuing the discussion from [Release] ERPNext Version 12:

Is your versoin-11 to version-12 upgrade still saying to “switch to version-12” becasue ERPnext is stuck on 11???

Followed the long thread and got stuck here???

Jay’s instructions somehow included quotations and so it didn’t work for me…

Via Jay:
git config remote.upstream.fetch “+refs/heads/*:refs/remotes/upstream/*”
from the Erpnext folder.

And then:

bench switch-to-branch version-12 --upgrade
bench update --patch

For some reason following this didn’t work for me as it added unneeded quotations

Run this command from Erpnext folder to see if you are also affected:
git config --get remote.upstream.fetch

My output was:
“+refs/heads/*:refs/remotes/upstream/*”

(notice the rogue quotations)

It SHOULD be without those quotations:
+refs/heads/*:refs/remotes/upstream/*

HERES HOW TO FIX: run this command from that same location:
git config remote.upstream.fetch +refs/heads/*:refs/remotes/upstream/*

And test with:
git config --get remote.upstream.fetch
To make sure there are no more quotations…

THEN

cd ../../
to get out of ERPnext folder and run the commands:

bench switch-to-branch version-12 frappe erpnext --upgrade
bench update --patch

4 Likes

Until today, I had not experienced a v11/v12 mismatch, but today was that day.
Thanks for this fix, which I can confirm works on Debian Buster v10 with ERPNext v11->v12 upgrade :sunglasses::clap:

1 Like