summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-08-01 10:55:31 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-08-01 10:55:59 -0400
commit455889c21496d691bd0c250b7c9401b53b5c5062 (patch)
tree9f44130d1f9078e1d8b782ee9378cfcb659c7ddd /git.c
parent6b0355c191166576fc5b7bf3715ec457dc360a8f (diff)
Fixed a typo in `create_pull_request_dir()`.
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 19a7690..61c2408 100644
--- a/git.c
+++ b/git.c
@@ -311,7 +311,7 @@ int create_pull_request_dir(pull_request *pr, int id, const char *root) {
}
/* Is there no existing directory? */
- if (stat(pr_dir, &st) < -1) {
+ if (stat(pr_dir, &st) < 0) {
/* Create a directory with a name of the stringified ID. */
mkdir(pr_dir, 0755);
}