tweets icon indicating copy to clipboard operation
tweets copied to clipboard

private/deleted repo makes git fetch --all require credentials

Open diracdeltas opened this issue 3 years ago • 5 comments

https://github.com/jayaddison/tweets is private so it makes git prompt for username/password when running git fetch --all with that repo as one of the remotes

diracdeltas avatar Nov 07 '22 04:11 diracdeltas

cc @jayaddison

diracdeltas avatar Nov 07 '22 04:11 diracdeltas

@nikolaydubina your repo also seems to be causing this issue jfyi

diracdeltas avatar Nov 07 '22 05:11 diracdeltas

hey, I actually deleted my repo.. 🙇🏻‍♂️

nikolaydubina avatar Nov 07 '22 06:11 nikolaydubina

yeah i was wondering if we could make a script to automatically remove invalid remotes

their http status goes to 404, eg

> curl -I https://github.com/nikolaydubina/tweets/
HTTP/2 404
server: GitHub.com
date: Mon, 07 Nov 2022 11:18:19 GMT
content-type: text/html; charset=utf-8

guites avatar Nov 07 '22 11:11 guites

Ah, apologies for breaking the jankyverse :whale:

GIT_TERMINAL_PROMPT=0 could be one way to resolve this? (git won't attempt to prompt for credentials in that case)

jayaddison avatar Nov 07 '22 12:11 jayaddison