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 495b08f..193c72a 100644
--- a/git.c
+++ b/git.c
@@ -285,7 +285,7 @@ file **get_branch_commits(git_branch *br) {
}
int create_pull_request_dir(pull_request *pr, int id, const char *root) {
- int ret = id;
+ int ret = (id >= 0) ? id : 0;
struct stat st;
file **commits;
char *pr_dir;