Browse Source
* stable-4.7: 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: I414ade902dc38b696c566dd604000e3d289f3973 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>stable-4.8
David Pursehouse
6 years ago
6 changed files with 89 additions and 107 deletions
@ -1,17 +1,16 @@
|
||||
NAME = "com_googlesource_gerrit_bazlets" |
||||
|
||||
def load_bazlets( |
||||
commit, |
||||
local_path = None |
||||
): |
||||
if not local_path: |
||||
native.git_repository( |
||||
name = NAME, |
||||
remote = "https://gerrit.googlesource.com/bazlets", |
||||
commit = commit, |
||||
) |
||||
else: |
||||
native.local_repository( |
||||
name = NAME, |
||||
path = local_path, |
||||
) |
||||
commit, |
||||
local_path = None): |
||||
if not local_path: |
||||
native.git_repository( |
||||
name = NAME, |
||||
remote = "https://gerrit.googlesource.com/bazlets", |
||||
commit = commit, |
||||
) |
||||
else: |
||||
native.local_repository( |
||||
name = NAME, |
||||
path = local_path, |
||||
) |
||||
|
Loading…
Reference in new issue