The `update` function first checks to see if we are in a git repo, and if so, updates that