-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
If during discovery of repos we find some that are completely empty, when git.py comes to clone them we see:
AssertionError: Remote 'origin' has no refspec set.Line 93 in switch_branch_then_pull of git.py
Which is thrown all the way up the stack (uncaught exception) and causes mass-driver run to exit non-zero.
Possible solutions
- During
discoveryphase (potentially in a plugged-in source) we omit empty repos from the run entirely- Would need to perform an additional API request per repo to determine if repo has 0 commits. Could get expensive...
- The pull code in
git.pyis wrapped to catch the error and log it, then remove the repo from processing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels