blob: f089af473a610e21307bf649a4fec81086cf33a5 [file] [log] [blame]
Sergiusz Bazanski573da782019-06-21 19:59:52 +02001load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2
3NAME = "com_googlesource_gerrit_bazlets"
4
5def load_bazlets(
6 commit,
7 local_path = None):
8 if not local_path:
9 git_repository(
10 name = NAME,
11 remote = "https://gerrit.googlesource.com/bazlets",
12 commit = commit,
13 )
14 else:
15 native.local_repository(
16 name = NAME,
17 path = local_path,
18 )