Unverified Commit 931bd3b8 by Edward Thomson Committed by GitHub

Merge pull request #5617 from muhkuh-sys/master

Fix crash in git_describe_commit when opts are NULL.
parents da3288de d10c846e
......@@ -685,7 +685,7 @@ int git_describe_commit(
get_name, &data)) < 0)
goto cleanup;
if (git_oidmap_size(data.names) == 0 && !opts->show_commit_oid_as_fallback) {
if (git_oidmap_size(data.names) == 0 && !normalized.show_commit_oid_as_fallback) {
git_error_set(GIT_ERROR_DESCRIBE, "cannot describe - "
"no reference found, cannot describe anything.");
error = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment