Re: [PATCH v6 4/4] commit: Add commit.verbose configuration
- From
Jeff King <peff@peff.net>
- Date
- Jun 17, 2014, 21:21 UTC
- Message-ID
- <20140617212132.GC13848@sigill.intra.peff.net>
- In-Reply-To
- <2a0ed28d8ef50ce432c7680c1f01eb0f52891134.1403033723.git.caleb@calebthompson.io>
On Tue, Jun 17, 2014 at 02:39:00PM -0500, Caleb Thompson wrote:
Show 11 quoted lines
> diff --git a/t/t7507-commit-verbose.sh b/t/t7507-commit-verbose.sh > index 35a4d06..471bd8f 100755 > --- a/t/t7507-commit-verbose.sh > +++ b/t/t7507-commit-verbose.sh > @@ -7,6 +7,10 @@ write_script check-for-diff <<-'EOF' > exec grep '^diff --git' "$1" > EOF > > +write_script check-for-no-diff <<-'EOF' > + ! check-for-diff > +EOF
Don't you need "$PWD/" or similar here, since check-for-diff is not in our path?
Otherwise, your tests will always pass ("! check-for-diff" is always true, since we cannot find it). I get (running with "-v"):
expecting success:
echo evenmorecontent >>file &&
git add file &&
test_config commit.verbose true &&
test_set_editor "$PWD/check-for-no-diff" &&
git commit --amend --no-verbose/home/peff/compile/git/t/trash directory.t7507-commit-verbose/check-for-no-diff: 2: /home/peff/compile/git/t/trash directory.t7507-commit-verbose/check-for-no-diff: check-for-diff: not found
Other than that, the whole series looks OK to me.
-Peff