Update commit.rb

add rescue for  not useing master branch.