{"thread":{"id":"60662","subject":"Suppress 'info: please complete authentication in browser'","startedAt":"2023-12-27T17:11:32Z","lastAt":"2023-12-27T17:47:57Z","messageCount":2,"participants":["Brian Hart","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"486057","messageId":"1858825158.1864122.1703697091856@mailbusiness.ionos.com","threadId":"60662","inReplyTo":null,"subject":"Suppress 'info: please complete authentication in browser'","fromName":"Brian Hart","fromEmail":"brian.hart@xylogix.net","sentAt":"2023-12-27T17:11:31Z","receivedAt":"2023-12-27T17:11:32Z","isPatch":false,"sender":{"key":"brian.hart@xylogix.net","avatar":null},"body":"Git for Windows version: 2.43.0\n\nHello,\n\nI am running a nightly shell script that syncs my local and remote Git repos. It kicks off at 7:30 PM each day. When I come into work the following morning, sporadically, I find that part of the script has not been executing for hours because a modal popup displays.\n\nThe text in the console is:\n`info: please complete authentication in your browser`\n\nAt the same time, a modal pop-up appears. The modal popup needs a button clicked to open the browser and sign in. Upon doing so, the browser says \"authentication successful,\" and the script continues -- but this is after I've woken up from being asleep, with the script otherwise sitting suspended all night long.\n\nI've heard various suggestions before about using the Windows Credential Manager (I believe I am already) and such. It seems as if Git is programmed to ignore the Credential Manager periodically and demand the use of the browser to re-authenticate.\n\nHere is the .sh script I am using, e.g., to do a pull on each directory in a root directory:\n\n```\ngit config --global user.email \"XXXXX\" --replace-all; git config --global user.name \"XXXXXX\" --replace-all; git config --global credential.helper wincred --replace-all; for d in */; do cd $d; echo Processing repository in \"${d%/}\"...; git config credential.helper wincred; git remote update; git pull --all -v --no-rebase; git add --renormalize .; cd ..; done\n```\n\nAs you can see I am using `git config --global credential.helper wincred --replace-all` and I am not sure why this should not work. NOTE: The 'XXXX' are for privacy.\n\nHow can I suppress the modal pop-up so I can run my overnight Git scripts?\n\nRegards,\n\n\nBrian Hart\n"},{"id":"486058","messageId":"ZYxjRZe9fCk909OJ@tapette.crustytoothpaste.net","threadId":"60662","inReplyTo":"1858825158.1864122.1703697091856@mailbusiness.ionos.com","subject":"Re: Suppress 'info: please complete authentication in browser'","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2023-12-27T17:47:49Z","receivedAt":"2023-12-27T17:47:57Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2023-12-27 at 17:11:31, Brian Hart wrote:\n> Hello,\n\nHey,\n\n> Here is the .sh script I am using, e.g., to do a pull on each directory in a root directory:\n> \n> ```\n> git config --global user.email \"XXXXX\" --replace-all; git config --global user.name \"XXXXXX\" --replace-all; git config --global credential.helper wincred --replace-all; for d in */; do cd $d; echo Processing repository in \"${d%/}\"...; git config credential.helper wincred; git remote update; git pull --all -v --no-rebase; git add --renormalize .; cd ..; done\n> ```\n\nIf your goal is to use a specific configuration, you may find it easier\nto use the GIT_CONFIG_GLOBAL environment variable to set a custom global\nconfiguration file and then GIT_CONFIG_NOSYSTEM=1 to unset the system\nconfiguration from being used.  My guess is that there's a\n`credential.helper=manager` setting in some config file, which you'd be\nable to see with `git config -l --show-origin`, and that using this\nconfiguration would fix that.\n\nHowever, if you see this problem after that, I'd recommend contacting\nthe Git for Windows team on their issue tracker at\nhttps://github.com/git-for-windows/git/issues/ or the Git Credential\nManager Core team at\nhttps://github.com/git-ecosystem/git-credential-manager/issues/.  The\nGit project itself doesn't distribute any binaries or anything but the\ncore Git code itself, so if you have a problem with Git for Windows or\nGit Credential Manager Core, you should contact those folks directly.\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"}]}