diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-01-15 18:50:31 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-03 16:40:50 +0300 |
commit | 4e498646b6e4f3e6303cd3a27682dcd10d97eaeb (patch) | |
tree | cab3a87c8845f549d9355a505df665a57ed4f4b3 /tests/reset | |
parent | 412a3808889de65d8f94f22502aba10b9afbf755 (diff) |
repository: remove log message override for switching the active branch
We want to use the "checkout: moving from ..." message in order to let
git know when a change of branch has happened. Make the convenience
functions for this goal write this message.
Diffstat (limited to 'tests/reset')
-rw-r--r-- | tests/reset/soft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reset/soft.c b/tests/reset/soft.c index f7ae59b3e..a5bb13cc8 100644 --- a/tests/reset/soft.c +++ b/tests/reset/soft.c @@ -45,7 +45,7 @@ void test_reset_soft__can_reset_the_non_detached_Head_to_the_specified_commit(vo void test_reset_soft__can_reset_the_detached_Head_to_the_specified_commit(void) { - git_repository_detach_head(repo, NULL); + git_repository_detach_head(repo); assert_reset_soft(true); } @@ -118,7 +118,7 @@ void test_reset_soft__fails_when_merging(void) { git_buf merge_head_path = GIT_BUF_INIT; - cl_git_pass(git_repository_detach_head(repo, NULL)); + cl_git_pass(git_repository_detach_head(repo)); cl_git_pass(git_buf_joinpath(&merge_head_path, git_repository_path(repo), "MERGE_HEAD")); cl_git_mkfile(git_buf_cstr(&merge_head_path), "beefbeefbeefbeefbeefbeefbeefbeefbeefbeef\n"); |