summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorKevin Daudt <me@ikke.info>2017-08-14 23:43:33 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-14 15:35:48 -0700
commit5fc92f8828b117d042344e4733e16195b264365b (patch)
treef83614f3de7f212410a2ed6621c8cd8e092e1c23 /builtin/commit.c
parent4d7268b888d7bb6d675340ec676e4239739d0f6d (diff)
downloadgit-5fc92f8828b117d042344e4733e16195b264365b.tar.gz
stash: prevent warning about null bytes in inputkd/stash-with-bash-4.4
The `no_changes` function calls the `untracked_files` function through command substitution. `untracked_files` will return null bytes because it runs ls-files with the '-z' option. Bash since version 4.4 warns about these null bytes. As they are not required for the test that is being done, make sure `untracked_files` does not output null bytes when not required. This is achieved by adding a parameter to the `untracked_files` function to specify wither `-z` should be passed to ls-files or not. This warning is triggered when running git stash save -u resulting in two warnings: git-stash: line 43: warning: command substitution: ignored null byte in input Signed-off-by: Kevin Daudt <me@ikke.info> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions