parmentelat / nbhosting

nginx + django + docker architecture to host notebooks embedded from open-edx hosted MOOCs
Other
77 stars 8 forks source link

review how courses pull #138

Closed parmentelat closed 3 years ago

parmentelat commented 3 years ago

the course-pull command actually does a git pull, which upon reflection is wrong

it is frequent during fine-tunings that a course would force-push rebased changes, typically for testing on a devel box

in that case the pull strategy is in the way; what we really want is for the courses-git area to reflect the upstream version, and follow force-pushes if any happens

it should be easy to come about that idea with a combo of fetch + reset just need to be sure about the current branch and remote