Re: [PATCH v7 4/6] stash: teach 'push' (and 'create_stash') to honor pathspec
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 27, 2017, 20:35 UTC
- Message-ID
- <xmqq60jvwewc.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170225213306.2410-5-t.gummerer@gmail.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
> + test -n "$untracked" || git ls-files --error-unmatch -- "$@" >/dev/null || exit 1
This silent "exit 1" made me scratch my head, but --error-unmatch would have already given an error message, like
error: pathspec 'no such' did not match any file(s) known to git.
Did you forget to 'git add'?so that would be OK.