Setting the working directory before git operations
Created by: crazyscience
Set the initial working directory. An issue can arise if the user is logged in as root and the current working directory is /root/. The console will return an error:
fatal: Could not change back to '/root': Permission denied
Changing the working directory prior to the clone operation seems to fix this.