Use current commit SHA when requesting IDE file tree and contents
We already store the initial SHA of the last known commit in the IDE. Which is either the commit the IDE is loaded at or the last commit done in the IDE.
should we also pass that SHA (instead of the branch name), when loading the tree and specific blobs?
Yeah good point
🤔We currently just request the file content from
/PROJET_NAMESPACE/raw/BRANCH_NAME/FILE_PATHso I guess we would need to do
Let's update our requests to the Web IDE to use the commit sha instead of the branch name.
It's possible that the branch is updated while the IDE is open. This would lead to strange behavior if a file is loaded and we pull the most recent changes (but the rest of the content is based on my current Web IDE HEAD).