summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-01-15 16:50:31 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-03 14:40:50 +0100
commit4e498646b6e4f3e6303cd3a27682dcd10d97eaeb (patch)
treecab3a87c8845f549d9355a505df665a57ed4f4b3 /src/clone.c
parent412a3808889de65d8f94f22502aba10b9afbf755 (diff)
downloadlibgit2-4e498646b6e4f3e6303cd3a27682dcd10d97eaeb.tar.gz
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 'src/clone.c')
-rw-r--r--src/clone.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/clone.c b/src/clone.c
index ac6a059dd..7e5d3302e 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -127,8 +127,7 @@ static int update_head_to_new_branch(
if (!error)
error = git_repository_set_head(
- repo, git_reference_name(tracking_branch),
- reflog_message);
+ repo, git_reference_name(tracking_branch));
git_reference_free(tracking_branch);
@@ -169,7 +168,7 @@ static int update_head_to_remote(
error = git_remote_default_branch(&branch, remote);
if (error == GIT_ENOTFOUND) {
error = git_repository_set_head_detached(
- repo, remote_head_id, reflog_message);
+ repo, remote_head_id);
goto cleanup;
}