Re: [PATCH 1/3] t5403.1: simplify commit creation
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Oct 12, 2011, 14:14 UTC
- Message-ID
- <4E95A0BF.2060003@viscovery.net>
- In-Reply-To
- <1318412105-13595-1-git-send-email-pclouds@gmail.com>
Am 10/12/2011 11:35, schrieb Nguyễn Thái Ngọc Duy:
Show 13 quoted lines
> test_expect_success setup ' > echo Data for commit0. >a && > echo Data for commit0. >b && > - git update-index --add a && > - git update-index --add b && > - tree0=$(git write-tree) && > - commit0=$(echo setup | git commit-tree $tree0) && > - git update-ref refs/heads/master $commit0 && > + git add a b && > + git commit -m setup && > git clone ./. clone1 && > git clone ./. clone2 && > GIT_DIR=clone2/.git git branch new2 &&
I don't think this change is necessary. It doesn't hurt to use plumbing commands here and there in the test suite to exercise them to a degree that they deserve.
-- Hannes