diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-11 01:13:59 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-11 13:48:43 +0100 |
commit | 195998cbc987f5c35da2e937e4938dfda7865464 (patch) | |
tree | cb2a6d2efaab564230888cc19b45101d49d5273d | |
parent | 5ecff56dbf1b60b6b5c814b3450bf4ec37ed26d6 (diff) |
Test suite: Make t-reporefs take optional repo argument
-rw-r--r-- | tests/lib | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) } |