chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ecff56
)
Test suite: Make t-reporefs take optional repo argument
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 11 Jul 2015 00:13:59 +0000
(
01:13
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 11 Jul 2015 12:48:43 +0000
(13:48 +0100)
tests/lib
patch
|
blob
|
history
diff --git
a/tests/lib
b/tests/lib
index 118c497115e9f1ac96198a6c7b392653215cc394..bd74ba8efa25d1561242eb2d25338a7ebd63f0f7 100644
(file)
--- 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 $
dgit
repo; then
- cd $
dgit
repo
+ if test -d $
which
repo; then
+ cd $
which
repo
git show-ref |sort
fi)
}