Switching from origin to upstream in hook scripts.