-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Bug]: Plugin is pushing to Github a ref that already exists instead of a new one #265
Comments
Oh wow. Do you have tried to delete the branch created by the plugin to test a new one ? Normally, the plugin should use a branch that already exists as I generate a specific branch name at each push. The bug with the regex is a nice catch. I know what happens here. I will try to add some "try/except" Until we found the error, but you will need to try multiple main.js file to help me to find the error |
Replace the file of the plugin by this : |
Found the spot where the error occurs 🕺
Note how
I don't know where this is supposed to be set. Checking the codebase for occurrences of That configuration is expected, but (a) I don't think the settings UI is setting, and (b) I don't think it's set anywhere in the whole plugin. |
Got it to work 😅 by adding this After this, Force Reloaded and it published. You can see the Pull Request was created. |
Wow! Ty! And yes; I closed the discord! Some reply to your question:
To be honest, I don't understand why a crash during the process of dataview (did you have the last version ?) could provoc all things! |
Thank you
This commit I suppose? 5328c58 Will test later and report back.
I do have the latest version. I guess there's just too many variables that can be |
Issue validation
Command used
Upload single current active note
Plugin version
6.12.5
Describe the bug
I can't push files anymore. I was using v4.x of the plugin, then decided to upgrade to v6.x and no changes are pushed to Github anymore.
A few points:
Possible candidate: a couple weeks ago I reset a commit from
main
in my repo (git reset --hard HEAD~1 && git push -f
), and I suspect the plugin's cloned version got out of sync. The thing is, I don't know how it keeps a version of the repo locally, whether it clones every time, or whether it keeps a version locally.How to reproduce ?
The repo in question is https://github.com/kurko/blog. Current's
main
head commit is 9cd6e9.Upload single current active note
Primary-12-28-2023
, so it errors out (as expected, I guess).Upload single current active note
again.Nothing happens. Note that it creates the branch and doesn't push any new commit. It just sets the sha as 9cd6e9, the same as HEAD in
main
.Upload single current active note
once more. This time it errors out because it's trying to push a commit that already exists.Given no new commits are pushed, it looks like the plugin is not identifying changes.
Minimal Reproducible Example
Configuration
Relevant log output
OS
MacOS
Anything else?
No response
Obsidian information
The text was updated successfully, but these errors were encountered: