I wrote a powershell script to update multiple git repositories.
Everything is working fine, except for that on seemingly random times, the script suddenly asks for login credentials.
Does anyone know what could cause this?
Just to make sure, it does not always ask for login information. It works just fine, and updates all repos. It just randomly stops on one (random) repo, and asks for the login. After that it works fine again for a while.
I'm thinking about maybe building in a "sleep" in between repo updates, as the script might be requesting the updates to fast in a row, could this cause it?
Kind regards, Michael
This issue is indeed cause by performing git calls to quick after another, by adding a delay in between git calls, the issue is gone totally.
So to anyone who wants to use a script to update a whole lot of repositories sequentially, sleep 1 second in between git calls, and you should not have this issue.