SchildiChat-android/pre_merge.sh
SpiritCroc 61e9bfce5b pre_merge.sh: Fix when last merge was not tagged
Change-Id: Ib48f8369884a13b7556bb0c3a70c367a940028c9
2021-04-09 11:55:15 +02:00

22 lines
519 B
Bash
Executable File

#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
source "$mydir/merge_helpers.sh"
# Require clean git state
require_clean_git
# Revert Schildi's upstream string changes
git checkout `upstream_previous_tag` -- "$mydir/vector/src/main/res/**/strings.xml"
git commit -m "Automatic revert to unchanged upstream strings, pt.1"
# Keep in sync with post_merge.sh!
restore_upstream .github
restore_upstream fastlane
restore_upstream README.md
git add -A
git commit -m "[TMP] Automatic upstream merge preparation"