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