diff options
-rw-r--r-- | src/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -159,11 +159,9 @@ int line_in_file(char* path, char* line) { * @return 1 if is a git command, 0 if not */ int is_git_cmd(char* str) { - if(strcmp(str, "git-upload-pack") == 0) - return 1; - else if(strcmp(str, "git-upload-archive") == 0) - return 1; - else if(strcmp(str, "git-receive-pack") == 0) + if(strcmp(str, "git-upload-pack") == 0 + || strcmp(str, "git-upload-archive") == 0 + || strcmp(str, "git-receive-pack") == 0) return 1; return 0; } |