]> git.ipfire.org Git - thirdparty/git.git/commit - commit-graph.c
commit-graph: return if there is no git directory
authorLessley Dennington <lessleydennington@gmail.com>
Mon, 6 Dec 2021 15:55:56 +0000 (15:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Dec 2021 17:55:05 +0000 (09:55 -0800)
commit0803f9c7cdff63d0c6cb992ba90f53fdcae50869
treed35b40885086996a097775ad2f98b35cd3f563b1
parente5b17bda8b6c830aa65f8c52e08755cae5b815a1
commit-graph: return if there is no git directory

Return early if git directory does not exist. This will protect against
test failures in the upcoming change to BUG in prepare_repo_settings if no
git directory exists.

Signed-off-by: Lessley Dennington <lessleydennington@gmail.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c