When executing the repo sync command, is it possible to sync only the repositories that I have permission to? I want to ignore the permission denied error.

I created a google repo manifest file that manages many git repositories. A lot of people use this. Some of them dont have access to the repository. This is intended.

I want him to clone only repositories he has permission to locally via the repo sync command. However, this causes an error and even the authorized repository is not cloned. Any workaround?

enter image description here

only clone repository if he have permission..

1

There are 1 best solutions below

0
On

As noted in the docs, you can use the -f option to sync other projects even if some projects fail.

Here are key options. See repo help sync for more:

  • -f: Proceed with syncing other projects even if a project fails to sync.