| David Ostrovsky | 608022f | 2016-11-20 22:43:33 +0100 | [diff] [blame^] | 1 | NAME = "com_googlesource_gerrit_bazlets" |
| 2 | |||||
| 3 | def load_bazlets( | ||||
| 4 | commit, | ||||
| 5 | local_path = None | ||||
| 6 | ): | ||||
| 7 | if not local_path: | ||||
| 8 | native.git_repository( | ||||
| 9 | name = NAME, | ||||
| 10 | remote = "https://gerrit.googlesource.com/bazlets", | ||||
| 11 | commit = commit, | ||||
| 12 | ) | ||||
| 13 | else: | ||||
| 14 | native.local_repository( | ||||
| 15 | name = NAME, | ||||
| 16 | path = local_path, | ||||
| 17 | ) | ||||