Skip to content

Commit aff55f9

Browse files
committed
Meta/ML: handle branches that were indirectly merged a bit better
1 parent df72e6e commit aff55f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ML

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ search_topics () {
3232
echo >&2 "$tip moved from $sha1"
3333
continue
3434
fi
35-
ago=
35+
36+
ago= lg=0
3637
fp=$(
3738
sed -ne "s/^\($x40\) $x40 $tip"'$/\1/p' "$tmp"
3839
) &&
40+
test -n "$fp" &&
3941
ago=$(
4042
git show -s --format='%ar' $fp
41-
)
43+
) &&
4244
lg=$(git log --oneline $target..$tip | wc -l)
4345
if test $lg != 0
4446
then

0 commit comments

Comments
 (0)