redrabbit / git.limo

A Git source code management tool powered by Elixir with easy installation & high extensibility.
https://git.limo
MIT License
497 stars 42 forks source link

Fix nil edge condition for initial commit diff preview. #90

Open EdmondFrank opened 10 months ago

EdmondFrank commented 10 months ago

When accessing the diff page of a repository's initial commit, a service exception occurs because old_tree is nil.

Replication link: https://git.limo/edmondfrank/Test/commit/9b8aaf04f53429bba6b203dcafafca031b46e164