Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b79517

Browse files
Allow the log message to be NULL.
1 parent e5994eb commit 0b79517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/refs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ int git_reference_create_with_log(
427427
const git_signature *signature,
428428
const char *log_message)
429429
{
430-
assert(oid && signature && log_message);
430+
assert(oid && signature);
431431

432432
return reference__create(
433433
ref_out, repo, name, oid, NULL, force, signature, log_message);
@@ -453,7 +453,7 @@ int git_reference_symbolic_create_with_log(
453453
const git_signature *signature,
454454
const char *log_message)
455455
{
456-
assert(target && signature && log_message);
456+
assert(target && signature);
457457

458458
return reference__create(
459459
ref_out, repo, name, NULL, target, force, signature, log_message);

0 commit comments

Comments
 (0)