git-repo-updater icon indicating copy to clipboard operation
git-repo-updater copied to clipboard

[feature request] flag to skip repos require auth

Open a-b opened this issue 9 years ago • 5 comments

Hello and thanks for such a great product!

For users who has a lot of old repos it would be really handy to have a flag to skip broken repos or repos with outdated auth. Thanks!

a-b avatar May 30 '15 22:05 a-b

Not sure how that would work. What sort of broken repos could it detect? I'm not sure what outdated auth means in this case.

Or are you just looking for a way to specify exclusion patterns? That sounds doable.

earwig avatar May 31 '15 03:05 earwig

I think I can do exclusion patterns using regular unix tools or zsh wildcard extensions. I'm trying to cover situation when one of the repos in the directory has some problems or errors and git return error:

web:                                                                                              │
        Error: no remotes configured to pull from.

In this case I want to have a flag which will gracefully skip this repo and continue to update other git repos.

a-b avatar Jun 07 '15 22:06 a-b

I don't understand. gitup doesn't stop updating just because one repo has an error. Can you check again?

Edit: Never mind, I get it.

earwig avatar Jun 08 '15 03:06 earwig

This is really a bug, right?

The problem can occur in two ways (at least on github):

  • A previously public repo is now private
  • A previous repo has been deleted

Both cases cause github to ask for a username/password as part of github authentication. They don't want to leak information about private repos.

I hit enter twice to get past this but that means that gitup can no longer be run from cron with the expectation of having all local repos get updated. It now requires human interaction because it blocks on wating for the username/password or htting enter twice.

I looked for some way using native git to get around this problem but couldn't find a way.

romeojulietthotel avatar Jul 02 '18 00:07 romeojulietthotel

That seems fair. I'll see what I can do.

earwig avatar Jul 02 '18 11:07 earwig