diff options
author | Ben Straub <bs@github.com> | 2012-11-30 12:52:42 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-30 13:12:16 -0800 |
commit | 4ec197f3049d203739066e0c2d2c5c39f78fd808 (patch) | |
tree | 94637d0def9f59554fd59efdaaec283e34dd9c26 /src/commit.c | |
parent | 10711769000d009189f83e468f25b719fa303086 (diff) | |
download | libgit2-4ec197f3049d203739066e0c2d2c5c39f78fd808.tar.gz |
Deploy GIT_SIGNATURE_INIT
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commit.c b/src/commit.c index 4072518ff..5197fdb6d 100644 --- a/src/commit.c +++ b/src/commit.c @@ -93,6 +93,9 @@ int git_commit_create( git_odb *odb; assert(git_object_owner((const git_object *)tree) == repo); + if (!git_signature__has_valid_version(author) || + !git_signature__has_valid_version(committer)) + return -1; git_oid__writebuf(&commit, "tree ", git_object_id((const git_object *)tree)); |