Update origin if necessary before checking revision
Create the repository with proper permissions.
Merge pull request #57 from binford2k/master

Allows the creation of non-root repositories
Merge pull request #56 from raphink/git_update_origin

Update origin if necessary before checking revision

This looks good. Thanks!
Tighten regex to avoid matching the word 'commit' in message
Allow non-root users to clone a repo

Without this, git will report that it can't change back to /root
Merge pull request #59 from binford2k/clone_as_non-root_user

Allow non-root users to clone a repo

Merging my own PR because it's just a rework of an existing PR.
Merge pull request #58 from sim0nf/fix_regex

Tighten regex to avoid matching the word 'commit' in message