summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
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);
}