From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id E3A513851C1B for ; Wed, 10 May 2023 12:44:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3A513851C1B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 102472198E; Wed, 10 May 2023 12:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683722686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=McdjVwboeN0qvtUsA5k35Iv5x+uRpzV/OWQZ9B58vYM=; b=tlzxl77C9UIkMqc5/JDxBybkTzySLGDkb1dlvQ7qlZ6SOAVniNUH3ei77cfhjCAaC+0Gia NNxqzb/TO4sf4SMRl8jyk/vaWu1oW6qKjVOu4jlKfaUc6Rb8JqVCR3KGkR0Hx1trFLAVT8 5bMNz1Vb6G3RuIQ1peUfh2MD33TLeAA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683722686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=McdjVwboeN0qvtUsA5k35Iv5x+uRpzV/OWQZ9B58vYM=; b=kiF+OWghYkMESGWez/lYSpjuNsaD9hhnWxIZemFZNNIXBvp9Hpkg0TnQkxRxTGuTxoGXKV AJSJd7//mNFoupAQ== Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 0093E2C344; Wed, 10 May 2023 12:44:44 +0000 (UTC) Received: by hawking.suse.de (Postfix, from userid 17005) id E871F4A04DC; Wed, 10 May 2023 14:44:44 +0200 (CEST) From: Andreas Schwab To: Sam James Cc: Sam James via Gcc , =?utf-8?Q?Ond=C5=99ej_Kub=C3=A1n?= =?utf-8?Q?ek?= Subject: Re: Tags not allowed in user repository - Mildly urgent In-Reply-To: <871qjoicxz.fsf@gentoo.org> (Sam James's message of "Wed, 10 May 2023 13:32:35 +0100") References: <87fs84iete.fsf@gentoo.org> <871qjoicxz.fsf@gentoo.org> X-Yow: I'm using my X-RAY VISION to obtain a rare glimpse of the INNER WORKINGS of this POTATO!! Date: Wed, 10 May 2023 14:44:44 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mai 10 2023, Sam James wrote: > Andreas Schwab writes: > >> On Mai 10 2023, Sam James via Gcc wrote: >> >>> Ondřej Kubánek via Gcc writes: >>> >>>> Hello, >>>> >>>> I have tried to push a tag to my user space /tags/ ref in the GCC repo. The >>>> tag is annotated but the push was rejected. Here is the command >>>> >>>> git push origin master:refs/users/kubaneko/tags/Thesis Thesis >>>> >>>> and here is the response >>>> >>>> Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 >>>> remote: *** Lightweight tags ('kubaneko/tags/Thesis' in namespace >>>> 'refs/users') are not allowed in this repository. >>>> remote: *** Use 'git tag [ -a | -s ]' for tags you want to propagate. >>>> remote: error: hook declined to update refs/users/kubaneko/tags/Thesis >>>> To git+ssh://gcc.gnu.org/git/gcc.git >>>> ! [remote rejected] master -> refs/users/kubaneko/tags/Thesis >>>> (hook declined) >>>> error: failed to push some refs to 'git+ssh://gcc.gnu.org/git/gcc.git' >>>> >>>> Is this expected behaviour? Do I need a gpg key to sign the tag? >>> >>> Note that you probably want to use a 'namespaced' tag (i.e. something >>> with a prefix). The version you pushed is simply called 'Thesis' which >>> is likely to be confusing to people. >> >> It already uses a prefix (users/kubaneko) which is not fetched by >> default. > > Ah, thanks, the UI in the tags section at https://gcc.gnu.org/git/?p=gcc.git;a=summary > confused me. But it's likely to confuse others as well. This is due to the second refspec, which just pushes to the global tags namespace. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."