From b28d285f9eb523f94f2130e1733f09c409417034 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 26 Aug 2016 15:20:12 -0400 Subject: debian/new-upstream-snapshot: small fixes. --- debian/new-upstream-snapshot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/new-upstream-snapshot b/debian/new-upstream-snapshot index c0699796..ef7510c2 100755 --- a/debian/new-upstream-snapshot +++ b/debian/new-upstream-snapshot @@ -75,7 +75,8 @@ if [ "${prev_upstream_ver}" = "${new_upstream_ver}" ]; then exit 0 fi -git merge "${from_ref}" -m "merge from $from_ref at $new_upstream_ver" +git merge "${from_ref}" -m "merge from $from_ref at $new_upstream_ver" || + fail "failed: git merge ${from_ref} -m 'merge from $from_ref ..'" TEMP_D=$(mktemp -d) || fail "failed mktemp" clog="${TEMP_D}/changelog" gitlog="${TEMP_D}/gitlog" @@ -111,4 +112,6 @@ case "$answer" in n|[Nn][oO]) exit 1;; esac -git commit -m "update changelog." debian/changelog +msg="update changelog (new upstream snapshot $new_upstream_ver)." +git commit -m "$msg" debian/changelog || + fail "failed to commit '$msg'" -- cgit v1.2.3