All of lore.kernel.org
 help / color / mirror / Atom feed
From: Knut Omang <knut.omang@oracle.com>
To: git@vger.kernel.org
Subject: Bug: 'git config --local user.email=<alt.email>' fails silently?
Date: Sun, 02 Apr 2017 07:47:23 +0200	[thread overview]
Message-ID: <1491112043.5830.11.camel@oracle.com> (raw)

Hi,

From the documentation I would have expected 

git config --local user.email=alt.email@alt.domain

to create a section 

[user]
	email=alt.email@alt.domain

in the local .git/config.

Instead it returns status 1 with no error message.

Is this intentional?

If I add the [user] section manually, it works as expected/desired:
my commits in that tree uses the alternate mail address.

git --version
git version 2.7.4

Thanks,
Knut Omang

-- 
Knut Omang, Ph.D
Principal Software Engineer
Oracle Linux and Virtualization Engineering
ORACLE Norway | Olaf Helsets vei 6 | 0694 Oslo
Email: knut.omang@oracle.com | Phone:  +47 41 46 22 10


             reply	other threads:[~2017-04-02  5:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-02  5:47 Knut Omang [this message]
2017-04-02  7:38 ` Bug: 'git config --local user.email=<alt.email>' fails silently? Jeff King
2017-04-02  7:53   ` Knut Omang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491112043.5830.11.camel@oracle.com \
    --to=knut.omang@oracle.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.