Skip to content

Commit 5ea2966

Browse files
authored
Merge pull request libgit2#6066 from libgit2/ethomson/deprecation
Fixes for deprecated APIs
2 parents ba01547 + 470acc7 commit 5ea2966

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/email.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ int git_email__append_from_diff(
217217
memcpy(&opts, given_opts, sizeof(git_email_create_options));
218218

219219
git_buf_sanitize(out);
220-
git_buf_clear(out);
221220

222221
if ((error = append_header(out, patch_idx, patch_count, commit_id, summary, author, &opts)) == 0 &&
223222
(error = append_body(out, body)) == 0 &&

tests/rebase/sign.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,20 +249,20 @@ void test_rebase_sign__create_propagates_error(void)
249249
}
250250

251251
#ifndef GIT_DEPRECATE_HARD
252-
int signing_cb_passthrough(
253-
git_buf *signature,
254-
git_buf *signature_field,
255-
const char *commit_content,
256-
void *payload)
257-
{
258-
static const char *expected_commit_content = "\
252+
static const char *expected_commit_content = "\
259253
tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
260254
parent f87d14a4a236582a0278a916340a793714256864\n\
261255
author Edward Thomson <ethomson@edwardthomson.com> 1405625055 -0400\n\
262256
committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n\
263257
\n\
264258
Modification 3 to gravy\n";
265259

260+
int signing_cb_passthrough(
261+
git_buf *signature,
262+
git_buf *signature_field,
263+
const char *commit_content,
264+
void *payload)
265+
{
266266
cl_assert_equal_b(false, git_buf_is_allocated(signature));
267267
cl_assert_equal_b(false, git_buf_is_allocated(signature_field));
268268
cl_assert_equal_s(expected_commit_content, commit_content);

0 commit comments

Comments
 (0)