Guard against trying to delete an empty list of commits
This commit is contained in:
parent
5d50a0e3e1
commit
f7ada4bf1f
1 changed files with 5 additions and 4 deletions
|
|
@ -255,10 +255,11 @@ WHERE git_repository_id = $1
|
|||
(list (number->string git-repository-id)
|
||||
branch-name))))
|
||||
|
||||
(unless (null? commits)
|
||||
(delete-revisions-from-branch conn
|
||||
git-repository-id
|
||||
branch-name
|
||||
commits)
|
||||
commits))
|
||||
|
||||
(exec-query
|
||||
conn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue