1*9625db20SDavid Ostrovskyload("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") 2*9625db20SDavid Ostrovsky 3e92a0c3aSDavid OstrovskyNAME = "com_googlesource_gerrit_bazlets" 4e92a0c3aSDavid Ostrovsky 5e92a0c3aSDavid Ostrovskydef load_bazlets( 6e92a0c3aSDavid Ostrovsky commit, 7487571e6SDavid Pursehouse local_path = None): 8e92a0c3aSDavid Ostrovsky if not local_path: 9*9625db20SDavid Ostrovsky git_repository( 10e92a0c3aSDavid Ostrovsky name = NAME, 11e92a0c3aSDavid Ostrovsky remote = "https://gerrit.googlesource.com/bazlets", 12e92a0c3aSDavid Ostrovsky commit = commit, 13e92a0c3aSDavid Ostrovsky ) 14e92a0c3aSDavid Ostrovsky else: 15e92a0c3aSDavid Ostrovsky native.local_repository( 16e92a0c3aSDavid Ostrovsky name = NAME, 17e92a0c3aSDavid Ostrovsky path = local_path, 18e92a0c3aSDavid Ostrovsky ) 19