-
-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent force-push to master may have omitted changes #1906
Comments
Thank you @gotgenes for digging into this and finding these. Force pushing is always a bad idea. Users experiencing problems: please reinstall or delete/install nvim-tree. |
Packer didn't pick up anything for me as I'm using the default depth of 1. Have you configured packer to get full history? Should be fixed now, thanks again. |
@alex-courtis Packer complained because for people who have done While the current state of master is okay, I'd actually recommend @alex-courtis to force push again so that |
I've manually merged all the missing commits:
|
That would have been much smarter. My acting fast has caused a lot of problems. There will be no further such repository forces. |
You can still do that now. It's only been 20 hours. |
I am not confident in my ability to do that. Could you execute that? The only commit after that point has been 87961d3 and I can reapply that afterwards. |
Ahh sure, I didn't know I had premission to force push to master haha. |
I hope this works, but even if it doesn't it won't break master any further and we should be able to fix it eventually. Force pushing is a pretty bad habit that I also have and do almost daily. I'm just lucky enough to not have it mess anything up yet. Or I just don't maintain anything with enough users for anyone to notice haha. |
Restoring as @chomosuke suggests will bring original authors back. :) |
I'm not able to see that commit in my dev repo or a freshly cloned repo. It is a valid commit and can be seen in the web UI. Could you push a tag or branch for that commit? |
That is a perhaps a real issue, I've found a solution here https://medium.com/git-tips/githubs-reflog-a9ff21ff765f but github tells me not found |
|
Update, |
f2ee309 checked out, thank you. Forking the repo for a dry run. |
Update again: ccb6d8a is now in the repos!! |
ccb6d8a is under branch old-master2 |
Tested at https://github.com/nvim-tree/nvim-tree.lua-fix-master with same master branch protections except "Allow force pushes" Diff for two fresh clones: :; diff -r nvim-tree.lua nvim-tree.lua-fix-master
diff '--color=auto' -r nvim-tree.lua/.git/config nvim-tree.lua-fix-master/.git/config
7c7
< url = [email protected]:nvim-tree/nvim-tree.lua.git
---
> url = [email protected]:nvim-tree/nvim-tree.lua-fix-master.git
Binary files nvim-tree.lua/.git/index and nvim-tree.lua-fix-master/.git/index differ
diff '--color=auto' -r nvim-tree.lua/.git/logs/HEAD nvim-tree.lua-fix-master/.git/logs/HEAD
1c1
< 0000000000000000000000000000000000000000 677d54afee1dfa7a30eb9e16ab7d9d1affc6484b Alexander Courtis <alex@xxxx> 1673311145 +1100 clone: from github.com:nvim-tree/nvim-tree.lua.git
---
> 0000000000000000000000000000000000000000 ccb6d8a518d32e22bf5874f90e6c22661a5d8b46 Alexander Courtis <alex@xxxx> 1673311308 +1100 clone: from github.com:nvim-tree/nvim-tree.lua-fix-master.git
diff '--color=auto' -r nvim-tree.lua/.git/logs/refs/heads/master nvim-tree.lua-fix-master/.git/logs/refs/heads/master
1c1
< 0000000000000000000000000000000000000000 677d54afee1dfa7a30eb9e16ab7d9d1affc6484b Alexander Courtis <alex@xxxx> 1673311145 +1100 clone: from github.com:nvim-tree/nvim-tree.lua.git
---
> 0000000000000000000000000000000000000000 ccb6d8a518d32e22bf5874f90e6c22661a5d8b46 Alexander Courtis <alex@xxxx> 1673311308 +1100 clone: from github.com:nvim-tree/nvim-tree.lua-fix-master.git
diff '--color=auto' -r nvim-tree.lua/.git/logs/refs/remotes/origin/HEAD nvim-tree.lua-fix-master/.git/logs/refs/remotes/origin/HEAD
1c1
< 0000000000000000000000000000000000000000 677d54afee1dfa7a30eb9e16ab7d9d1affc6484b Alexander Courtis <alex@xxxx> 1673311145 +1100 clone: from github.com:nvim-tree/nvim-tree.lua.git
---
> 0000000000000000000000000000000000000000 ccb6d8a518d32e22bf5874f90e6c22661a5d8b46 Alexander Courtis <alex@xxxx> 1673311308 +1100 clone: from github.com:nvim-tree/nvim-tree.lua-fix-master.git
Only in nvim-tree.lua-fix-master/.git/objects/pack: pack-6901b20d9c2d2e72642cb6c0bc016de9dd185bca.idx
Only in nvim-tree.lua-fix-master/.git/objects/pack: pack-6901b20d9c2d2e72642cb6c0bc016de9dd185bca.pack
Only in nvim-tree.lua/.git/objects/pack: pack-7c1c69bd1ea6831ac772d6c29ac28905b3b9a1a9.idx
Only in nvim-tree.lua/.git/objects/pack: pack-7c1c69bd1ea6831ac772d6c29ac28905b3b9a1a9.pack
diff '--color=auto' -r nvim-tree.lua/.git/packed-refs nvim-tree.lua-fix-master/.git/packed-refs
6c6,8
< 677d54afee1dfa7a30eb9e16ab7d9d1affc6484b refs/remotes/origin/master
---
> 62ea3f6ced2d9366759cf00afe68e61cbacbbbba refs/remotes/origin/gegoune-patch-1
> ccb6d8a518d32e22bf5874f90e6c22661a5d8b46 refs/remotes/origin/master
> f2ee30998eb4e191ed9931719a4e3b28be35494b refs/remotes/origin/old-master
diff '--color=auto' -r nvim-tree.lua/.git/refs/heads/master nvim-tree.lua-fix-master/.git/refs/heads/master
1c1
< 677d54afee1dfa7a30eb9e16ab7d9d1affc6484b
---
> ccb6d8a518d32e22bf5874f90e6c22661a5d8b46
diff '--color=auto' -r nvim-tree.lua/lua/nvim-tree/explorer/explore.lua nvim-tree.lua-fix-master/lua/nvim-tree/explorer/explore.lua
9,10d8
< local Watcher = require "nvim-tree.watcher"
<
33,37c31
< if
< not filters.should_filter(abs, filter_status)
< and not nodes_by_path[abs]
< and Watcher.is_fs_event_capable(abs)
< then
---
> if not filters.should_filter(abs, filter_status) and not nodes_by_path[abs] then
diff '--color=auto' -r nvim-tree.lua/lua/nvim-tree/explorer/reload.lua nvim-tree.lua-fix-master/lua/nvim-tree/explorer/reload.lua
11d10
< local Watcher = require "nvim-tree.watcher"
90c89
< if t == "directory" and vim.loop.fs_access(abs, "R") and Watcher.is_fs_event_capable(abs) then
---
> if t == "directory" and vim.loop.fs_access(abs, "R") then
diff '--color=auto' -r nvim-tree.lua/lua/nvim-tree/watcher.lua nvim-tree.lua-fix-master/lua/nvim-tree/watcher.lua
162,186d161
< --- Windows NT will present directories that cannot be enumerated.
< --- Detect these by attempting to start an event monitor.
< --- @param path string
< --- @return boolean
< function M.is_fs_event_capable(path)
< if not utils.is_windows then
< return true
< end
<
< local fs_event = vim.loop.new_fs_event()
< if not fs_event then
< return false
< end
<
< if fs_event:start(path, FS_EVENT_FLAGS, function() end) ~= 0 then
< return false
< end
<
< if fs_event:stop() ~= 0 then
< return false
< end
<
< return true
< end
<
diff '--color=auto' -r nvim-tree.lua/README.md nvim-tree.lua-fix-master/README.md
1,10d0
< # Broken master 2023/01/10
<
< An incorrectly executed force push to master resulted in lost changes and conflicting commit history. The changes have been manually restored: https://github.com/nvim-tree/nvim-tree.lua/issues/1906
<
< If your plugin manager experiences issues updating delete/reinstall nvim-tree.
<
< Please accept my apologies for the inconvenience.
<
< Alex
< |
Fixed. Many, many thanks for your help @chomosuke That is my last force push. Updated branch protection rules and disallowed force pushes. |
No worries man! Thank you for your hard work and responsiveness! |
Description
Hi,
master
has recently diverged from its previous history. I noticed this when Packer failed to updated the plugin, saying it could not fast-forward to the latest changes. Here's a look at the recent history locally vs. in GitHub.It is possible that the changes in #1876 and #1879 have been omitted. You might want to verify the changes in those PRs are still present in the codebase.
Neovim version
Operating system and version
N/A
nvim-tree version
master
Minimal config
Steps to reproduce
N/A
Expected behavior
No response
Actual behavior
No response
The text was updated successfully, but these errors were encountered: