Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/overcommit/git_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down