From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Git snafu Date: Tue, 25 Apr 2023 13:37:39 -0700 Message-ID: References: <87a5ywcf1g.fsf.ref@yahoo.com> <87a5ywcf1g.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30631"; mail-complaints-to="usenet@ciao.gmane.io" To: Po Lu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 25 22:38:47 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prPR1-0007o8-4O for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Apr 2023 22:38:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prPQ4-0004DO-4b; Tue, 25 Apr 2023 16:37:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prPQ1-0004CF-PM for emacs-devel@gnu.org; Tue, 25 Apr 2023 16:37:46 -0400 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prPPz-00039F-Iz for emacs-devel@gnu.org; Tue, 25 Apr 2023 16:37:45 -0400 Original-Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1a6ebc66ca4so48278825ad.3 for ; Tue, 25 Apr 2023 13:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682455061; x=1685047061; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=8VoyrQgKqfQ4ojxJL40SYvGN/RY2aizt42OlOneQQdM=; b=cb4XcSf2/sSOwHmOrscSc54Pifq2lxwJw6oIDWxaDQJK5jLzhwVgk3wmvuxaGoHCgD Pv3lf5gKeSx5oZsaZK5E9OtLwF/zsKH4ALGCn8vOmo9ang30zopSCjKag/a3i3ISDtET +FMm9htIR7MSrnbmsZpqS8M+E/MLaV9vqgBpgCCt7bD6nll23rbZATjVoUxIpxp5iPPC 3h+3kXPc9k6/lG8yF5uIbL4q9zGqYNzDTiyXYceJ3fw+6TwT46H+L5ceZ0a/H1uL61mz gTfOSpNFHJhAyiZ9ZZzlkF6riQYZb34WptT+GTxrKXbZjm5wVAn2lFz/V/y3DKdUkyri /TbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682455061; x=1685047061; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8VoyrQgKqfQ4ojxJL40SYvGN/RY2aizt42OlOneQQdM=; b=BWCLbK3A4sdtWUTyuAM+IqYjLbkpeZNp1rTA1fmHpzXbVpkEtP20RYp2aB8FnTObb1 V7NIabZNMHZpTpj34RTH4QgItTvamVL8tAkZf/MFbIucN1jhzFNKv9jdrkwkviN4PCCh G7JDj8eu2QPN8H9QAkzg1BFPF5vCFWq0T3iNO9dfv+Y5vhSu5WPYMTsmME9fsZMCf+N2 lt5iS30z9W80rLrtk7v7Xd0JQy4kwd47a06dVz5Kw2qW9hlHf7uk5Pt9riTnMsM5dUSh oVXJjKx98c0zQ0c79555GT3n48SQ9GzDk/lO2nZQ6jtsutS3lyHI7jlmHyaGLlgt+KZB wymw== X-Gm-Message-State: AAQBX9evUYo7koKiT+1phrp6+blWYO7Oi4dCrJ5WAnFPGO6/rJNl4do1 5rs103/ecaR9vpI5mT34b54= X-Google-Smtp-Source: AKy350b7UkkxtcCXwWP6CU/FBwomXOI5Ej5tNki9NFMgoZ3dnAzIonSuH/tUPKnyicMzH3I27FWnlw== X-Received: by 2002:a17:902:b583:b0:1a8:bc5:4912 with SMTP id a3-20020a170902b58300b001a80bc54912mr16782936pls.52.1682455061338; Tue, 25 Apr 2023 13:37:41 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id r21-20020a170902ea5500b001a988a71617sm1903824plg.192.2023.04.25.13.37.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Apr 2023 13:37:40 -0700 (PDT) Content-Language: en-US In-Reply-To: <87a5ywcf1g.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305668 Archived-At: On 4/25/2023 5:38 AM, Po Lu wrote: > When trying to commit from a brand new machine installed at my > organization, I made a mistake. I configured the git username and > e-mail as root, and not as my user. > > So now there is a commit from the default Git username on emacs.git. Is > there a way to rectify this mistake? It won't rectify it, but we could prevent this in the future with a Git hook (and one that's significantly simpler than the one I added for change log entries). I see that the commit author is "Your Name ". That's easy enough to block; are there any other author addresses that we should forbid? I seem to recall that Git sometimes authors commits as "local-user@local-hostname", which isn't a useful email address for the global internet either.