Changeset View
Changeset View
Standalone View
Standalone View
contrib/source-control-tools/land-patch.sh
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
done | done | ||||
if [[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]]; then | if [[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]]; then | ||||
echo "Error: This script assumes the commit to land is on master" | echo "Error: This script assumes the commit to land is on master" | ||||
exit 10 | exit 10 | ||||
fi | fi | ||||
TOPLEVEL=$(git rev-parse --show-toplevel) | TOPLEVEL=$(git rev-parse --show-toplevel) | ||||
# TODO: Autogen (update version numbers, copyright headers, etc.) | |||||
# Sanity checks | # Sanity checks | ||||
"${TOPLEVEL}"/contrib/devtools/smoke-tests.sh | "${TOPLEVEL}"/contrib/devtools/smoke-tests.sh | ||||
# Push the change. Phabricator will automatically close the associated revision. | # Push the change. Phabricator will automatically close the associated revision. | ||||
git push "${GIT_ARGS[@]}" origin master | git push "${GIT_ARGS[@]}" origin master |