refactor: properly handle commits and branches
refactor: properly handle commits and branches

- if it is a commit, we must clone and checkout. `clone --branch` only works for tags and branches
- set the branch as the deploy-branch if detected

dokku/dokku,progrium/dokku,claytonbrown/dokku,claytonbrown/dokku,progrium/dokku,progrium/dokku,claytonbrown/dokku,progrium/dokku,dokku/dokku,dokku/dokku,progrium/dokku,claytonbrown/dokku,dokku/dokku,progrium/dokku,dokku/dokku,progrium/dokku,progrium/dokku,dokku/dokku,claytonbrown/dokku,claytonbrown/dokku,dokku/dokku,dokku/dokku,claytonbrown/dokku,claytonbrown/dokku