Changeset View
Changeset View
Standalone View
Standalone View
contrib/source-control-tools/automated-commits.sh
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | *) | ||||
LAND_PATCH_ARGS+=("--dry-run") | LAND_PATCH_ARGS+=("--dry-run") | ||||
;; | ;; | ||||
esac | esac | ||||
OLD_HEAD="$(git rev-parse HEAD)" | OLD_HEAD="$(git rev-parse HEAD)" | ||||
echo "Building automated commit using '${SCRIPT}'..." | echo "Building automated commit using '${SCRIPT}'..." | ||||
BOT_PREFIX="[Automated]" | |||||
TOPLEVEL=$(git rev-parse --show-toplevel) | TOPLEVEL=$(git rev-parse --show-toplevel) | ||||
BUILD_DIR="${TOPLEVEL}/abc-ci-builds/automated-commit-$(basename ${SCRIPT})" | BUILD_DIR="${TOPLEVEL}/abc-ci-builds/automated-commit-$(basename ${SCRIPT})" | ||||
mkdir -p "${BUILD_DIR}" | mkdir -p "${BUILD_DIR}" | ||||
export BUILD_DIR | export BUILD_DIR | ||||
# Make sure tree is clean | # Make sure tree is clean | ||||
if [ -n "$(git status --porcelain)" ]; then | if [ -n "$(git status --porcelain)" ]; then | ||||
Show All 35 Lines |