chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test suite: Make t-reporefs stash the output
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index 5c8293f9b200d1f127c8811b7f875fe6ca5024f0..776e2a3e40f42bf426365d96f2894e57795044e7 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-53,8
+53,11
@@
t-expect-fail () {
}
t-reporefs () {
+ local whichoutput=$1; shift
+ local outputfile="$tmp/show-refs.$whichoutput"
(set -e
- if test -d $tmp/git/$p.git; then
+ exec >"$outputfile"
+ if test -d $tmp/git/$p.git; then
cd $tmp/git/$p.git
git show-ref |sort
fi)