Merge branch 'hw/advice-add-nothing'
Two help messages given when "git add" notices the user gave it nothing to add have been updated to use advise() API. * hw/advice-add-nothing: add: change advice config variables used by the add API add: use advise function to display hints
This commit is contained in:
@ -158,7 +158,9 @@ test_expect_success 'submodule add to .gitignored path fails' '
|
||||
cat <<-\EOF >expect &&
|
||||
The following paths are ignored by one of your .gitignore files:
|
||||
submod
|
||||
Use -f if you really want to add them.
|
||||
hint: Use -f if you really want to add them.
|
||||
hint: Turn this message off by running
|
||||
hint: "git config advice.addIgnoredFile false"
|
||||
EOF
|
||||
# Does not use test_commit due to the ignore
|
||||
echo "*" > .gitignore &&
|
||||
|
||||
Reference in New Issue
Block a user