blob: f089af473a610e21307bf649a4fec81086cf33a5 [file] [log] [blame]
David Pursehouse30e128b2018-10-12 07:54:16 +09001load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2
Owen Li2b4838a2017-08-04 09:00:51 -04003NAME = "com_googlesource_gerrit_bazlets"
4
5def load_bazlets(
Marco Miller65f42702018-09-27 17:10:44 -04006 commit,
7 local_path = None):
8 if not local_path:
David Pursehouse30e128b2018-10-12 07:54:16 +09009 git_repository(
Marco Miller65f42702018-09-27 17:10:44 -040010 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 )