git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] You can't have single quote in your username

From
Giuseppe Crinò <giuscri@gmail.com>
Date
Aug 22, 2019, 12:32 UTC
Message-ID
<CAGV3M55WAQOAOiZPPgR+6p2EVzakrbz1gYAMh-BqxCVDeLCq9w@mail.gmail.com>
Note how `git log` discards the ending quote character:
```
root@NBR1710R:~# git init repo
Initialized empty Git repository in /root/repo/.git/
root@NBR1710R:~# cd repo/
root@NBR1710R:~/repo# git config user.name Les Actualite\'
root@NBR1710R:~/repo# cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[user]
        name = Les
root@NBR1710R:~/repo# git config user.name "Les Actualite\'"
root@NBR1710R:~/repo# cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[user]
        name = Les Actualite\\'
root@NBR1710R:~/repo# touch foo
root@NBR1710R:~/repo# git add foo
root@NBR1710R:~/repo# git commit -m 'first'
[master (root-commit) a78e11f] first
 Committer: Les Actualite <root@NBR1710R>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
    git config --global --edit
After doing this, you may fix the identity used for this commit with:
    git commit --amend --reset-author
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 foo
root@NBR1710R:~/repo# git log
commit a78e11ff0707bd4f1bea195735a7fc8b7ee2b9f8 (HEAD -> master)
Author: Les Actualite <root@NBR1710R>
Date:   Thu Aug 22 14:25:11 2019 +0200
    first
```

I can't test with the development tree right now, ``` root@NBR1710R:~/repo# git --version git version 2.17.1 ```

Next: Pratyush Yadav
Message 1 of 26 in “[BUG] You can't have single quote in your username”
  1. Giuseppe CrinòAug 22, 2019
  2. Pratyush YadavAug 22, 2019
  3. Junio C HamanoAug 22, 2019
  4. Giuseppe CrinòAug 23, 2019
  5. Michal SuchánekAug 23, 2019
  6. René ScharfeAug 22, 2019
  7. Bryan TurnerAug 22, 2019
  8. Emily ShafferAug 22, 2019
  9. Pratyush YadavAug 22, 2019
  10. SZEDER GáborAug 23, 2019
  11. Giuseppe CrinòAug 23, 2019
  12. SZEDER GáborAug 23, 2019
  13. Giuseppe CrinòAug 24, 2019
  14. Giuseppe CrinòAug 25, 2019
  15. Jeff KingAug 26, 2019
  16. Giuseppe Crino'Aug 27, 2019
  17. Michal SuchánekAug 27, 2019
  18. Giuseppe Crino'Aug 28, 2019
  19. Jeff KingAug 28, 2019
  20. Giuseppe CrinòAug 31, 2019
  21. Jeff KingSep 2, 2019
  22. Junio C HamanoSep 2, 2019
  23. Michal SuchánekSep 2, 2019
  24. Giuseppe CrinòSep 3, 2019
  25. Michal SuchánekSep 3, 2019
  26. SZEDER GáborAug 23, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.