Repository navigation
olcli 0.16.1
olcli 0.16.1
Fixes a data-loss bug in the git remote helper. If you use git clone overleaf::..., please update.
Fixed
git pullnow brings in edits made on Overleaf, andgit pushno longer overwrites them. After the clone,git fetchandgit pullnever downloaded the project again, so a followinggit pushsilently overwrote newer edits by coauthors in every file it uploaded. A fetch now compares every file with the state of the last fetch or push and imports a commit only when something changed.- A push is refused when Overleaf has changes you have not fetched, or when your branch does not contain the last fetch (for example after a
git pullwhose merge conflict is still open). Rungit pull, resolve any conflict, commit, and push again.git push --forceoverwrites on purpose.
Upgrade note
Clones made with 0.16.0 or earlier have no record of the Overleaf state yet. Run git pull once before your next push; the push tells you so if you forget.
olcli pull and olcli push are not affected.
Full changelog: v0.16.0...v0.16.1