mdk icon indicating copy to clipboard operation
mdk copied to clipboard

Branch not properly guessed when updating master

Open FMCorz opened this issue 11 years ago • 5 comments

Say your current stable_master is on 2.5, but we just released a new version and so masterBranch is set to 26. Then running mdk update on stable_master will not reset to the master branch but to origin/MOODLE_25_STABLE.

This is seen as a bug from the user, but that is caused by the version.php file still displaying branch = 25. A manual git reset on the master branch will fix the issue.

Not sure how to fix this, or how to prompt the user for the right action.

FMCorz avatar May 20 '13 01:05 FMCorz

I think I experienced this too.

danpoltawski avatar May 20 '13 01:05 danpoltawski

Quick fix (on v0.4):

cd /your/master/instance
git checkout master
mdk update -c
git reset --hard origin/master
mdk update --upgrade

FMCorz avatar May 20 '13 01:05 FMCorz

I didn't experience this issue during the transition from 2.6 to 2.7 (master). Not sure why.

FMCorz avatar Nov 25 '13 09:11 FMCorz

Same.

danpoltawski avatar Nov 25 '13 10:11 danpoltawski

This must also depends on the status of the branches checked out during update/upgrade. They should be rebased.

FMCorz avatar Nov 26 '13 02:11 FMCorz