Change down into the plugin/theme dir before checking out branch.