Update command_checkout.js

Added gitdir option