About repo init with --mirror and --reference

811 views
Skip to first unread message

vista...@gmail.com

unread,
Sep 7, 2018, 5:03:54 AM9/7/18
to Repo and Gerrit Discussion
Hi,friends:

     I had  tried to make the local reference repo like [1]:
         [1]Use commond  ‘repo init’  with ‘--mirror’ and repo sync to make the reference repo like /mirror.
        
     On the client,  ‘repo init’ with ‘--reference=/mirror’  and  repo sync 

     After that, I also found fetch projects from gerrit server and fetch msg in ssh_log.

    Why?

Thanks.

David Pursehouse

unread,
Sep 7, 2018, 9:29:13 AM9/7/18
to vista...@gmail.com, Repo and Gerrit Discussion
When you fetch/clone using the mirror, it only uses the mirror for project / objects that exist there.  Any projects / objects that are not in the mirror are still fetched from gerrit.   To avoid this the mirror should be regularly updated.

 
Thanks.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vista...@gmail.com

unread,
Sep 8, 2018, 12:04:37 PM9/8/18
to Repo and Gerrit Discussion
Hi,David:
 
       I am sure the project / objects that exist in mirror,but also fetch from gerrit. :(
Reply all
Reply to author
Forward
0 new messages