Port fastai-make-pr-branch from bash to python

no, git caches the password for 15min by default, so it’ll be at most one time password prompt from git. and one more time for forking if a token is not used. So worst case scenario - 2 times. But the script can cache it the first time and use it by itself the second time, so really we are down to just one prompt if ever.

And, of course, it needs to handle the failed password case too. Wow, suddenly it’s much more complicated than the bash script that just works. Perhaps you can find a ready implementation for that in the github land.

So the other option we could do is keep the bash script as the main product, and have the python script for windows users and require a token to be used with it? Look ma, no password needed! And if someone from the windows land wants the password option they can code it :wink:

1 Like