update with correct git updating function