diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4e25a57..52abb9d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,7 +78,7 @@ stages: script: - python3 tools/ci-restore-timestamps.py - make html inbox-html - - git fetch --depth=1 origin main + - git fetch --depth=50 origin main - bash tools/ci-changed-builds.sh origin/main rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' diff --git a/tools/ci-changed-builds.sh b/tools/ci-changed-builds.sh index d7e34829..63ea318a 100755 --- a/tools/ci-changed-builds.sh +++ b/tools/ci-changed-builds.sh @@ -1,7 +1,12 @@ #!/bin/bash set -euo pipefail IFS=$'\n' -filenames="$(git diff-tree -r --no-commit-id --name-only HEAD "$1" | ( grep -P '^(xep-[0-9]{4}|inbox/[^/]+)\.xml$' || true))" +if ! merge_base="$(git merge-base "$1" HEAD)"; then + echo 'Failed to find merge base to detect changed files' >&2 + echo 'This indicates that your branch is too old and needs to be rebased' >&2 + exit 2 +fi +filenames="$(git diff-tree -r --no-commit-id --name-status "$merge_base" HEAD | ( grep -P '^[AM]\t(xep-[0-9]{4}|inbox/[^/]+)\.xml$' || true) | cut -f2)" if [ -z "$filenames" ]; then exit 0 fi diff --git a/xep-0329.xml b/xep-0329.xml index a97bdf3e..4e1a8821 100644 --- a/xep-0329.xml +++ b/xep-0329.xml @@ -32,6 +32,12 @@ j.lagrange@jabber.org &lance; + + 0.4.1 + 2020-06-14 + fs + Fix example 7, remove superfluous 'node' attribute + 0.4 2017-09-11 @@ -153,7 +159,7 @@ from='romeo@montague.net/home' to='juliet@capulet.com/chamber' id='1236'> - + test2.txt 1000