diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-30 22:06:24 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-30 22:46:35 +0000 |
commit | d7a8b709fff008ddc507f497b055f2f883b733bf (patch) | |
tree | 8509090ea40951323028c7388133454d5c7369b4 /tests/lib | |
parent | 889fdc22aea7073fe6284328b9b30efb86b88e7d (diff) |
Test suite: Change t-has-parent to t-has-parent-or-is
This is only used by the inarchivecopy test. And that ought not to
fail if there is no into-suite pseudomerge: that is, when the suite
branch contains the intended commit, rather than something merging the
intended commit into the suite branch.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -198,11 +198,11 @@ t-has-ancestor () { fi } -t-has-parent () { - # t-has-parent CHILD PARENT +t-has-parent-or-is () { + # t-has-parent-or-is CHILD PARENT local child=$1 local parent=$2 - local parents=$(git show --pretty=format:' %P ' "$child") + local parents=$(git show --pretty=format:' %P %H ' "$child") parent=$(git rev-parse "$parent~0") case "$parents" in *" $parent "*) ;; |