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:
2da6897
)
test suite: splitbrain: "bad b/p" prints more info
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 17 Jul 2019 23:47:31 +0000
(
00:47
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 17 Jul 2019 23:47:31 +0000
(
00:47
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib
patch
|
blob
|
history
diff --git
a/tests/lib
b/tests/lib
index bb7f04eccff29a9f791172cb6b0dbe4bae59017f..c4702241ebf93a38973ab9582c512aaaf5ca8990 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-777,11
+777,12
@@
t-splitbrain-pushed-good-start () {
t-refs-same-start
t-ref-same refs/heads/split.p
- case "$(t-git-get-ref refs/heads/split.b)" in
+ local split_b=$(t-git-get-ref refs/heads/split.b)
+ case "$split_b" in
"$t_ref_val") ;;
"$(git rev-parse refs/heads/split.p^0)") ;;
"$(git rev-parse refs/heads/split.p^1)") ;;
- *) fail
'bad b/p'
;;
+ *) fail
"bad b/p (b=$split_b)"
;;
esac
t-pushed-good-core