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