Page 4 of 4

Re: ZConnection - force a complete reload of database libraries

Posted: 13.11.2019, 13:08
by Fr0sT
marsupilami wrote: Having a small bash script execute these commands once per hour is no problem. The problem is that I have no clue (yet) on how to store the necessary credentials with git since it seems that I canot provide them on the command line.
The simplest solution is to edit %repo%\.git\config, change field "url" to include credentials: https://username:password@github.com/...
Btw, Github refuses your invitation for me with message "Sorry, we couldn't find that repository invitation. It is possible that the invitation was revoked or that you are not logged into the invited account. ", could you try finding by name "Fr0sT-Brutal".

Re: ZConnection - force a complete reload of database libraries

Posted: 13.11.2019, 16:22
by marsupilami
Fr0sT wrote:The simplest solution is to edit %repo%\.git\config, change field "url" to include credentials: https://username:password@github.com/...
Unfortunately that didn't work out (yet). I was still asked for my Sourceforge password (ssh type URL) and for github it doesn't work out because I have the # char in my password that seems to have a special meaning in URLs. Bit I seem to remember, that a credential manager can be enabled that can store usernames and passwords.
Fr0sT wrote:Btw, Github refuses your invitation for me with message "Sorry, we couldn't find that repository invitation. It is possible that the invitation was revoked or that you are not logged into the invited account. ", could you try finding by name "Fr0sT-Brutal".
I revoked that invitation. I tried to find a way to tell github that your commits were done by you, so they could be attributed to your account on github. But that only seems to work when importing an external repository and when I really pushed it from my computer.

Re: ZConnection - force a complete reload of database libraries

Posted: 13.11.2019, 17:07
by Fr0sT
marsupilami wrote:Unfortunately that didn't work out (yet). I was still asked for my Sourceforge password (ssh type URL) and for github it doesn't work out because I have the # char in my password that seems to have a special meaning in URLs. Bit I seem to remember, that a credential manager can be enabled that can store usernames and passwords.
Yes, ssh won't work as such, but Github's http could, just replace your # by URL-encoding, like %20 is space etc.
And yes, credential helpers are more powerful thing, I have an article regarding this tool.
I revoked that invitation. I tried to find a way to tell github that your commits were done by you, so they could be attributed to your account on github. But that only seems to work when importing an external repository and when I really pushed it from my computer.
Don't worry, no problem :)

Re: ZConnection - force a complete reload of database libraries

Posted: 13.11.2019, 21:59
by aehimself
I see @Jan you are not using Windows, but it might help other fellas one day. In my Git global config I set

[credential]
helper = manager

First time during sync VS code asked for a user name / password and saved it to Network Passwords. And never asked again :)

Re: ZConnection - force a complete reload of database libraries

Posted: 14.11.2019, 07:51
by aehimself
Fyi, two ways to keep an SVN repo in sync with GitHub automatically:

https://github.com/frones/ZeosLib/issues/1 (see comments)
https://github.com/gabrys/svn2github They say this used to be an online service, but this script was the heart of it

Re: ZConnection - force a complete reload of database libraries

Posted: 14.11.2019, 11:18
by marsupilami
aehimself wrote:I see @Jan you are not using Windows, but it might help other fellas one day. In my Git global config I set

[credential]
helper = manager

First time during sync VS code asked for a user name / password and saved it to Network Passwords. And never asked again :)
I assume, the same can be done in the local configuration of a repository. I will try that later on :)

Re: ZConnection - force a complete reload of database libraries

Posted: 15.11.2019, 09:43
by marsupilami
Soo - I found the way to store credentials with git on Linux:

Code: Select all

git config credential.helper store
This will store the credentials as plain text in a hidden file.

Re: ZConnection - force a complete reload of database libraries

Posted: 19.11.2019, 08:58
by aehimself
So I checked in a minimalistic test for .AbortOperation but as I have 0 experience with unit testing I don't know how to include it in the suite. I guess I'd have to put it in ZTestconnection, but I have no idea on how to run it :)

Or maybe it should be a completely separate test for ZMethodInThread & .AbortOperation...?

https://github.com/aehimself/zeoslib/co ... 233382b6cc

Re: ZConnection - force a complete reload of database libraries

Posted: 22.11.2019, 10:05
by marsupilami
aehimself wrote:So I checked in a minimalistic test for .AbortOperation but as I have 0 experience with unit testing I don't know how to include it in the suite. I guess I'd have to put it in ZTestconnection, but I have no idea on how to run it :)

Or maybe it should be a completely separate test for ZMethodInThread & .AbortOperation...?

https://github.com/aehimself/zeoslib/co ... 233382b6cc
Sorry - I didn't get around to review that yet. I hope, that I can do that during the weekend.

Re: ZConnection - force a complete reload of database libraries

Posted: 22.11.2019, 12:14
by aehimself
marsupilami wrote:Sorry - I didn't get around to review that yet. I hope, that I can do that during the weekend.
Can... :) Whenever you have time, it's not urgent at all.