blob: f089af473a610e21307bf649a4fec81086cf33a5 [file] [log] [blame]
David Pursehousea8d83492018-10-12 07:54:17 +09001load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2
Hector Oswaldo Caballero750b1d22017-09-20 13:50:15 -04003NAME = "com_googlesource_gerrit_bazlets"
4
5def load_bazlets(
Marco Miller3710f842018-09-28 15:47:19 -04006 commit,
7 local_path = None):
8 if not local_path:
David Pursehousea8d83492018-10-12 07:54:17 +09009 git_repository(
Marco Miller3710f842018-09-28 15:47:19 -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 )