Staubgeborener / Klipper-Backup

Klipper-Backup is a script for manual or automated Klipper GitHub backups. It's Lightweight, pragmatic and comfortable.
https://klipperbackup.xyz
287 stars 56 forks source link

[Solved] updated to v1.3.1-11-gf7bb5204 and now when I press macro I get error #125

Closed Bradford1040 closed 1 month ago

Bradford1040 commented 1 month ago

Code of Conduct

What happened

hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. If you want to integrate the remote changes, hint: use 'git pull' before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

What did you expect to happen

well it to back up like it normally did

How to reproduce

nothing changed

Debug

I am not able to really debug

Additional information

any help would be great

Staubgeborener commented 1 month ago

I am not able to really debug

Like it's written down there: run script.sh --debug and post the output.

Btw, the checkbox "code of conduct" is there for a reason and not just to click on it without sticking to it. I'm not even sure if you really used -fix right now

I guess you changed something in your github repository, like uploaded a file or changed something. Something like that. Now your local code doesn't match with the remote one anymore.

Normally the script handles stuff like that. I guess you changed something on your remote repository and also played around with different repositories and/or branches and edited the .env a couple of times? Please tell exactly what you did.

Bradford1040 commented 1 month ago

Of course it was my fault, thank you for responding so quickly, it had nothing to do with you I believe, I am pretty sure it had to me renaming the default branch, as I switched to Danger Klipper from main line Klipper and wanted to create a second repo for it and keep the first! But had forgotten that I got a warning about switching the default branch, so pretty sure this can be closed

Bradford1040 commented 1 month ago

also, you said "Like it's written down there: run script.sh --debug and post the output." where did I see that and pass over it? just future reference, and learning stuff

Staubgeborener commented 1 month ago

I am pretty sure it had to me renaming the default branch, as I switched to Danger Klipper from main line Klipper and wanted to create a second repo for it and keep the first! But had forgotten that I got a warning about switching the default branch, so pretty sure this can be closed

I don't think I truly understand what you did, but to break it down: if you rename or create a new branch which you want to use you have to put the name of this new branch also in your .env file. If you switch the repository you have to put the name of this new repository also in your .env. I guess you mixed something up?

I always ask for as many details as possible because we naturally want to improve the code. There are certain dependencies under which problems arise that we can't even think about. Problems like yours can help to recognize this and add new checks to the code so that we can either fix it directly while the user is running the code or point out a problem to the user with a specific error message.

also, you said "Like it's written down there: run script.sh --debug and post the output." where did I see that and pass over it? just future reference, and learning stuff

Opening a new issue will explicitly ask for this:

image