neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 370535fc70e87e465e0d6b39420b0b6a72056b37
parent d62e71a0240a7506b870b99e5c068f336e0a137e
Author: Lukas Fleischer <cgit@cryptocrack.de>
Date:   Mon, 26 Aug 2013 20:38:31 +0200

t0108: Avoid unnecessary fork()

Use `git rev-list --max-parents=0 HEAD` instead of `git rev-list HEAD |
tail -1` to get the root commit. This works since Git 1.7.4.2.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>

Diffstat:
Mtests/t0108-patch.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/t0108-patch.sh b/tests/t0108-patch.sh @@ -24,7 +24,7 @@ test_expect_success 'find `cgit` signature' ' ' test_expect_success 'find initial commit' ' - root=$(git --git-dir="$PWD/repos/foo/.git" rev-list HEAD | tail -1) + root=$(git --git-dir="$PWD/repos/foo/.git" rev-list --max-parents=0 HEAD) ' test_expect_success 'generate patch for initial commit' '