Prevent repeated preparation of git command