summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 88a7887..9fb7f31 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}

Generated by cgit