diff --git a/lib/overcommit/git_repo.rb b/lib/overcommit/git_repo.rb index fbc84681..381691dd 100644 --- a/lib/overcommit/git_repo.rb +++ b/lib/overcommit/git_repo.rb @@ -167,7 +167,7 @@ def restore_merge_state FileUtils.touch(File.expand_path('MERGE_MODE', Overcommit::Utils.git_dir)) File.open(File.expand_path('MERGE_HEAD', Overcommit::Utils.git_dir), 'w') do |f| - f.write("#{@merge_head}\n") + f.write(@merge_head) end @merge_head = nil end @@ -186,7 +186,7 @@ def restore_cherry_pick_state if @cherry_head File.open(File.expand_path('CHERRY_PICK_HEAD', Overcommit::Utils.git_dir), 'w') do |f| - f.write("#{@cherry_head}\n") + f.write(@cherry_head) end @cherry_head = nil end