diff options
-rw-r--r-- | git.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |