Showing a message about ignoring --config when the current directory already is a git repository.

This commit is contained in:
Daniel Baumann 2012-07-28 20:37:19 +02:00
parent 189ea002e4
commit 28cd477e7e
1 changed files with 2 additions and 1 deletions

View File

@ -870,8 +870,9 @@ Local_arguments ()
Local_arguments "${@}"
if [ -e .git ]
if [ -e .git ] && [ -n "${_CONFIG}" ]
then
Echo_message "Ignoring --config ${_CONFIG}: ${PWD} is already a git repository"
_CONFIG=""
fi