Update misc.rb

Based on /lib/adapters/git/misc.rb