Commit d7c81945 by Edward Thomson

Merge pull request #2964 from git-up/fixes

Fixes
parents 959482e1 2461e0d2
...@@ -149,7 +149,7 @@ int git_reset( ...@@ -149,7 +149,7 @@ int git_reset(
if (reset_type == GIT_RESET_HARD) { if (reset_type == GIT_RESET_HARD) {
/* overwrite working directory with HEAD */ /* overwrite working directory with HEAD */
opts.checkout_strategy = GIT_CHECKOUT_FORCE | GIT_CHECKOUT_SKIP_UNMERGED; opts.checkout_strategy = GIT_CHECKOUT_FORCE;
if ((error = git_checkout_tree(repo, (git_object *)tree, &opts)) < 0) if ((error = git_checkout_tree(repo, (git_object *)tree, &opts)) < 0)
goto cleanup; goto cleanup;
......
...@@ -7,7 +7,7 @@ void reflog_check(git_repository *repo, const char *refname, ...@@ -7,7 +7,7 @@ void reflog_check(git_repository *repo, const char *refname,
git_reflog *log; git_reflog *log;
const git_reflog_entry *entry; const git_reflog_entry *entry;
exp_email = exp_email; GIT_UNUSED(exp_email);
cl_git_pass(git_reflog_read(&log, repo, refname)); cl_git_pass(git_reflog_read(&log, repo, refname));
cl_assert_equal_i(exp_count, git_reflog_entrycount(log)); cl_assert_equal_i(exp_count, git_reflog_entrycount(log));
......
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