feat(besadii): Adapt into a Gerrit ref-updated-hook

Besadii was previously invoked as a git post-update hook, but Gerrit
does not use these hooks and instead has its own concept of hooks.

This change adapts besadii to be compatible with the way Gerrit hooks
are invoked (arguments being passed as flags, rather than via stdin).

Change-Id: I487b3a9e15810583bc5442fdc024ee2771c580cb
This commit is contained in:
Vincent Ambo 2020-06-13 05:59:15 +01:00
parent 8735c63e97
commit b094e65bfc
2 changed files with 62 additions and 67 deletions

View file

@ -5,8 +5,4 @@
depot.buildGo.program {
name = "besadii";
srcs = [ ./main.go ];
x_defs = {
"main.gitBin" = "${depot.third_party.git}/bin/git";
};
}