1*e92a0c3aSDavid OstrovskyNAME = "com_googlesource_gerrit_bazlets" 2*e92a0c3aSDavid Ostrovsky 3*e92a0c3aSDavid Ostrovskydef load_bazlets( 4*e92a0c3aSDavid Ostrovsky commit, 5*e92a0c3aSDavid Ostrovsky local_path = None 6*e92a0c3aSDavid Ostrovsky ): 7*e92a0c3aSDavid Ostrovsky if not local_path: 8*e92a0c3aSDavid Ostrovsky native.git_repository( 9*e92a0c3aSDavid Ostrovsky name = NAME, 10*e92a0c3aSDavid Ostrovsky remote = "https://gerrit.googlesource.com/bazlets", 11*e92a0c3aSDavid Ostrovsky commit = commit, 12*e92a0c3aSDavid Ostrovsky ) 13*e92a0c3aSDavid Ostrovsky else: 14*e92a0c3aSDavid Ostrovsky native.local_repository( 15*e92a0c3aSDavid Ostrovsky name = NAME, 16*e92a0c3aSDavid Ostrovsky path = local_path, 17*e92a0c3aSDavid Ostrovsky ) 18