git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Diogo Fernandes <diogoabfernandes@gmail.com>
To: git@vger.kernel.org
Subject: Bug Report: Superfluous Tab Characters
Date: Fri, 3 Feb 2023 13:29:29 +0100	[thread overview]
Message-ID: <CADPR2CUgrO6ius5ss9Mgk8Zktf+4zQDq0vP4EEKOMku7K=V6FA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 335 bytes --]

Dear git team,

I have run into a bug where git seems to be adding superfluous tabs to
the end of filenames that contain a space. I have attached the output
of `git bugreport` for your review. Feel free to have a look
https://github.com/trufflesecurity/trufflehog/issues/1060 for
additional context.

Thanks.

Regards,
Diogo Fernandes

[-- Attachment #2: git-bugreport-2023-02-02-1145.txt --]
[-- Type: text/plain, Size: 1554 bytes --]

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)

$ mkdir test
$ cd test
$ git init
$ echo foo > "filename 2"
$ git add "filename 2"
$ git commit -m "test"
$ git log -p | grep "+++" | xxd  # 0x09 is a \t character that is being added to a filename with a space

00000000: 2b2b 2b20 622f 6669 6c65 6e61 6d65 2032  +++ b/filename 2
00000010: 090a                                     ..

What did you expect to happen? (Expected behavior)

$ echo "foo" > filename2
4 git add .
$ git commit -m "test"
$ git log -p | grep "+++" | xxd

00000000: 2b2b 2b20 622f 6669 6c65 6e61 6d65 320a  +++ b/filename2.

What happened instead? (Actual behavior)

A tab character is being appended to filenames.

What's different between what you expected and what actually happened?

A tab character should not be appended to filenames.

Anything else you want to add: No.

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.39.1
cpu: arm64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:43:09 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T6000 arm64
compiler info: clang: 14.0.0 (clang-1400.0.29.202)
libc info: no libc information available
$SHELL (typically, interactive shell): /bin/zsh


[Enabled Hooks]

             reply	other threads:[~2023-02-03 12:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 12:29 Diogo Fernandes [this message]
2023-02-03 13:43 ` Bug Report: Superfluous Tab Characters Martin Ågren
     [not found]   ` <CADPR2CXR_KRKFjPA-0ZuHGHHq_-epHXtJWCuwYx6uvLF_H49mg@mail.gmail.com>
2023-02-05 15:28     ` Martin Ågren
2023-02-05 17:01       ` Diogo Fernandes

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to='CADPR2CUgrO6ius5ss9Mgk8Zktf+4zQDq0vP4EEKOMku7K=V6FA@mail.gmail.com' \
    --to=diogoabfernandes@gmail.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).