]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
test-lib-functions.sh: teach test_commit -C <dir>
authorStefan Beller <sbeller@google.com>
Thu, 8 Dec 2016 21:03:26 +0000 (13:03 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Dec 2016 22:52:57 +0000 (14:52 -0800)
commit6f94351b0a4dd107623a35dc9081bf31c7ddac88
tree91477f0dc12e4e7f56190218e6e60ccd7c31da7c
parent89c8626557621ef000930da3c8a23fa03ad7e01a
test-lib-functions.sh: teach test_commit -C <dir>

Specifically when setting up submodule tests, it comes in handy if
we can create commits in repositories that are not at the root of
the tested trash dir. Add "-C <dir>" similar to gits -C parameter
that will perform the operation in the given directory.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh