We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2db98f commit 34073bfCopy full SHA for 34073bf
src/libgit2/commit.c
@@ -1107,8 +1107,10 @@ int git_commit_create_from_stage(
1107
if (given_opts)
1108
memcpy(&opts, given_opts, sizeof(git_commit_create_options));
1109
1110
- if ((author = opts.author) == NULL ||
1111
- (committer = opts.committer) == NULL) {
+ author = opts.author;
+ committer = opts.committer;
1112
+
1113
+ if (!author || !committer) {
1114
if (git_signature_default(&default_signature, repo) < 0)
1115
goto done;
1116
0 commit comments