From nobody Fri Mar 29 11:00:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605883573; cv=none; d=zohomail.com; s=zohoarc; b=Km4Kv1RTAu8z0iN7uIR3Je0dqwswdilnBgnxFY6EJuvn9s2s17glpwSOmayDyvY/HLcFg8TUWT3hwFoHulb+TgwdY4p9ZMjfcsBJGivbSYN/aN6clZMB2Tnb7IbFzs4lCP2f+93msIXc6z1gm1cbz21JtiFVHpOvnGf/xWNdJeI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605883573; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=dm0bohqbC6Hg4n8YBnSM+QY7Q32vN0k8MVdP0n1kZUc=; b=b0BeLrtggxgfB2sX+F/fHptgi3kO/8px0yXzK+Co+sBn6Siwj6/EdknBTn/zKveksG1WQS1w8QwGMEPzvJIkKZUfkDZMY22qrH1b2it24vB7ORW3gzEaHlz9xQsh7jaZTWfqZuoQmpgu7piqFwuXZDaMhiemxv2UqyR3YGiurtw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605883573568680.4283482520495; Fri, 20 Nov 2020 06:46:13 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-418-M-G8s_5pO0utQF6H-W7SKg-1; Fri, 20 Nov 2020 09:46:06 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B303A107ACFC; Fri, 20 Nov 2020 14:46:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AC5C060C0F; Fri, 20 Nov 2020 14:46:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A4EB05002C; Fri, 20 Nov 2020 14:46:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AKEk4js008235 for ; Fri, 20 Nov 2020 09:46:04 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7E8A56085A; Fri, 20 Nov 2020 14:46:04 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-204.ams2.redhat.com [10.36.112.204]) by smtp.corp.redhat.com (Postfix) with ESMTP id CBF2260853; Fri, 20 Nov 2020 14:46:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605883569; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dm0bohqbC6Hg4n8YBnSM+QY7Q32vN0k8MVdP0n1kZUc=; b=cO4RuNDbhOKihdzjhaOSeWrl0fRNV/3XrgPOnzLcuFAaC9jKzyvsN2AA0Ja5d2Fs22RTJY 6lFkXCF0TGQAbYAhScl8LzPC9YJrEGZkTOL3nKEsYhV5vrrqhRPYySxBZV6XzCKBngYjFE EXp39UETefD1HJXjpMhdXG6o+YkUmUM= X-MC-Unique: M-G8s_5pO0utQF6H-W7SKg-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 20 Nov 2020 15:45:58 +0100 Message-Id: <20201120144558.157600-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH v3] cli: Fix git fetch cmdline X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=patchew-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" From: Fam Zheng The argument causes an error when doing git-fetch. Seems to be a bug introduced in 7e35f90584. Message-Id: <20201022144446.3989941-1-fam@euphon.net> [Paolo: use --force, which is what 7e35f90584 wanted to achieve] Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- patchew-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchew-cli b/patchew-cli index f872c1d..831c803 100755 --- a/patchew-cli +++ b/patchew-cli @@ -71,7 +71,7 @@ def git_clone_repo(clone, remote, head, logf, checkout=3D= True, recursive=3DFalse): ) if head.startswith("refs/tags/"): subprocess.check_call( - ["git", "fetch", remote_name, "+%s:%s" % (head, head)], + ["git", "fetch", "--force", remote_name, head], cwd=3Dcache_repo, stdout=3Dlogf, stderr=3Dlogf, --=20 2.28.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel