]> granicus.if.org Git - cgit/commit
t0108: Avoid unnecessary fork()
authorLukas Fleischer <cgit@cryptocrack.de>
Mon, 26 Aug 2013 18:38:31 +0000 (20:38 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 26 Aug 2013 19:01:11 +0000 (21:01 +0200)
commit370535fc70e87e465e0d6b39420b0b6a72056b37
tree9d39703b4052bf9521dcf6e4335830899d5411ea
parentd62e71a0240a7506b870b99e5c068f336e0a137e
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>
tests/t0108-patch.sh