From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b7-smtp.messagingengine.com (fhigh-b7-smtp.messagingengine.com [202.12.124.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03650610B for ; Tue, 19 Nov 2024 00:32:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731976327; cv=none; b=VfGN+bmgv4hBPE2loCFelkHtEbiH5owLLimpQChmhOuYENr3EZjAbsL/3eoi3BztgHJRpGBJrjAptazInD9kb3AIjVrC2yUXqOvE55gwa/1EfZ09wU5LARIM32Eirada6qwFo75gLKf/rg0hyAaBxFcdM38TTz4Y6ro5sjPGYss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731976327; c=relaxed/simple; bh=0Iy4n0c6ACkTpi91l2JdQuRBlWxPHqXWA0pRAqrp2tM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=R4AlfJeajlAfKshgqsuoSkW4tRQZxmhSDQZkku6VFGxnD6CV6s57E4uxiQ2JP7siUs3EkISW06LHK7I6Xx+/qYwzoyh0UxGrrXm4rtrZpLwDvHR7swy1O0pPkQ5/uezJ1RA1ZqrqSUAvk7Q1HZFt+JMvcHY0/GXutnam3MdI1Y4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=h2yECVC6; arc=none smtp.client-ip=202.12.124.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="h2yECVC6" Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1CA2E254015A; Mon, 18 Nov 2024 19:32:04 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-12.internal (MEProxy); Mon, 18 Nov 2024 19:32:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1731976323; x= 1732062723; bh=yz4x1eim2Rvmt/Xipg+GDS3dYDS92z+dROyDzRwRX/s=; b=h 2yECVC6OidiEjv7Ew9HirQraXBvrpb0x4E3Lwq6C/cEaAd6VAWxWSjw7M0qx0scm dh2UMHc9Wf6UJfTfZfBq/SW4jcPPjAy8qPgHmkksD1xImB3fN/yPoJY4cOjkBZrk pG3bIh8b6gpcr/JoNa4LL2sAm3hiaeVrNFLdSIAISnfUolFL+jkj7gegAwDLZ+kM wIvgyr8cxuK83gBH4Mu5965MevEOMPNsJLFikCXvbwqymgvEikHEVnI3bMs2vF9f yjF0/bZnubrjJ+LmQCRmlsW1j47shYJgbM0RzaFmk6qwNEjokyfJzuF1QctjixPl KVZ2uy7DVKD573MtD77kA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfedugddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfgfgggtgfesthekofdttderjeen ucfhrhhomheplfhunhhiohcuvecujfgrmhgrnhhouceoghhithhsthgvrhesphhosghogi drtghomheqnecuggftrfgrthhtvghrnhepkefgtdeuvdejfffgheeufeeugefhtdejhffg kefhhfetieffteehleehtdfghedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepghhithhsthgvrhesphhosghogidrtghomhdpnhgspghrtghp thhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheplhgvvhhrrghiphhhih hlihhpphgvsghlrghinhesghhmrghilhdrtghomhdprhgtphhtthhopehsohgvrhgvnhdr sggvtghhsegsihhtiigvrhgukhdrtghomhdprhgtphhtthhopehgihhtsehvghgvrhdrkh gvrhhnvghlrdhorhhgpdhrtghpthhtohepghhithhsthgvrhesphhosghogidrtghomh X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Nov 2024 19:32:03 -0500 (EST) From: Junio C Hamano To: Philippe Blain Cc: =?utf-8?Q?Bech_Christensen=2C_S=C3=B8ren?= , "git@vger.kernel.org" Subject: Re: Possible bug in Git submodule update --inti In-Reply-To: <8db6eba3-a151-3819-159b-921a6c3f3242@gmail.com> (Philippe Blain's message of "Mon, 18 Nov 2024 14:22:18 -0500") References: <8db6eba3-a151-3819-159b-921a6c3f3242@gmail.com> Date: Tue, 19 Nov 2024 09:32:02 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Philippe Blain writes: > Hi Søren, > ... > in the doc for 'git submodule init' [3]. Note that this is _not_ > the exact command that you ran according to the trace output below, which is: > ... > I think what you'd want to do is simply: > > git submodule set-url -- > git submodule update --init --remote > > This will fetch the new URL and checkout the tip commit of its HEAD branch. > You will still have all the objects from the old URL locally though. If you want > to avoid that, you should completely remove the Git repository of the submodule: > > git submodule set-url -- > git submodule deinit -f > rm -rf $(git rev-parse --git-dir)/modules/Submodules/Lodam.Standard > git submodule update --init --remote Thanks for a pleasant exchange, RFH with sufficient information necessary to help, with a detailed diagnosis and an alternative offered.