Signed-off-by: Cao Xueliang <caoxl78320(a)163.com>
---
src/delimiter/utils.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/delimiter/utils.rb b/src/delimiter/utils.rb
index 3120ca6..0930dd7 100644
--- a/src/delimiter/utils.rb
+++ b/src/delimiter/utils.rb
@@ -29,7 +29,7 @@ module Utils
commits << temp_commit if temp_commit
end
commits << get_last_commit(work_dir, commit) if commits.empty?
- return commits.to_a
+ return commits.to_a.compact
end
def get_day_ago_commit(work_dir, commit, day_ago)
--
2.23.0