For a git repository defined in QuickBuild we have to add an extra remote repository, but when the address of the repository is wrong or the remote repository doesn't exist anymore, we get following error when trying to run the configuration (it's thrown before checking build condition):
2019-06-12 10:19:07 - Failed to run command: git fetch --all --tags -q
Command return code: 1
Command error output: error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
fatal: remote error: Repository not found
The requested repository does not exist, or you do not have permission to
access it.
error: Could not fetch external_repository
error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
In my opinion, since QuickBuild lets us define only one (origin) remote repository, it shouldn't try to fetch all remotes, but only the origin. Otherwise, we cannot do anything about this issue, as there's no way to handle errors thrown before checking build condition is triggered.
Description
For a git repository defined in QuickBuild we have to add an extra remote repository, but when the address of the repository is wrong or the remote repository doesn't exist anymore, we get following error when trying to run the configuration (it's thrown before checking build condition):
2019-06-12 10:19:07 - Failed to run command: git fetch --all --tags -q
Command return code: 1
Command error output: error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
fatal: remote error: Repository not found
The requested repository does not exist, or you do not have permission to
access it.
error: Could not fetch external_repository
error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
In my opinion, since QuickBuild lets us define only one (origin) remote repository, it shouldn't try to fetch all remotes, but only the origin. Otherwise, we cannot do anything about this issue, as there's no way to handle errors thrown before checking build condition is triggered.