git-restrict

simple utility for git repo permission management
git clone https://git.parazyd.org/git-restrict
Log | Files | Refs | README | LICENSE

commit fce572f45c5e908503ec65ae66e06d7cb0203b8a
parent 6e46a06adce88c9b0bfdd57b039d6aebeaed5ca8
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 31 Mar 2021 04:23:38 +0200

Indentation.

Diffstat:
Mgit-restrict.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/git-restrict.c b/git-restrict.c @@ -45,10 +45,11 @@ int main(int argc, char *argv[]) die("fatal: Unauthorized command."); /* Remove ' prefix and suffix */ - repo++; repo[strlen(repo)-1] = 0; + repo++; + repo[strlen(repo) - 1] = 0; for (i = 1; i < argc; i++) { - buf = malloc(strlen(repo)+4); + buf = malloc(strlen(repo) + 4); sprintf(buf, "%s.git", argv[i]); if (!strcmp(argv[i], repo) || !strcmp(buf, repo)) {