Browse Source
* stable-5.1: Bazel: Use hyphen instead of underscore in external repository names Bazel: Format all build files with buildifier 0.15.0 ChangeIdUtilTest: Remove unused notestCommitDashV Change-Id: Ie9d77a7716591246b87fb59ac85214417fe8309d Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>stable-5.2
David Pursehouse
6 years ago
2 changed files with 68 additions and 69 deletions
@ -1,17 +1,16 @@ |
|||||||
NAME = "com_googlesource_gerrit_bazlets" |
NAME = "com_googlesource_gerrit_bazlets" |
||||||
|
|
||||||
def load_bazlets( |
def load_bazlets( |
||||||
commit, |
commit, |
||||||
local_path = None |
local_path = None): |
||||||
): |
if not local_path: |
||||||
if not local_path: |
native.git_repository( |
||||||
native.git_repository( |
name = NAME, |
||||||
name = NAME, |
remote = "https://gerrit.googlesource.com/bazlets", |
||||||
remote = "https://gerrit.googlesource.com/bazlets", |
commit = commit, |
||||||
commit = commit, |
) |
||||||
) |
else: |
||||||
else: |
native.local_repository( |
||||||
native.local_repository( |
name = NAME, |
||||||
name = NAME, |
path = local_path, |
||||||
path = local_path, |
) |
||||||
) |
|
||||||
|
Loading…
Reference in new issue