From: Ian Jackson Date: Sat, 11 Jul 2015 00:13:59 +0000 (+0100) Subject: Test suite: Make t-reporefs take optional repo argument X-Git-Tag: debian/1.0~45 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=195998cbc987f5c35da2e937e4938dfda7865464 Test suite: Make t-reporefs take optional repo argument --- diff --git a/tests/lib b/tests/lib index 118c4971..bd74ba8e 100644 --- a/tests/lib +++ b/tests/lib @@ -111,11 +111,12 @@ t-git-objects-not-present () { t-reporefs () { local whichoutput=$1; shift + local whichrepo=${1-$dgitrepo} local outputfile="$tmp/show-refs.$whichoutput" (set -e exec >"$outputfile" - if test -d $dgitrepo; then - cd $dgitrepo + if test -d $whichrepo; then + cd $whichrepo git show-ref |sort fi) }