add dot locking for the git invocation