diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-05-28 08:03:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-05-28 08:03:43 -0400 |
commit | 2ddd45bdb8dcf018eebe19b84e637c8bfb630ec1 (patch) | |
tree | 17c723e8a1112785b444e75e70b53bd6c96c699b | |
parent | 896ab165d96ba4fb9806cea09f4f7d7be6a26830 (diff) | |
parent | e1f0b9fb1eb6cf8e57655bb9db4224b5ce080d0f (diff) | |
download | tor-2ddd45bdb8dcf018eebe19b84e637c8bfb630ec1.tar.gz tor-2ddd45bdb8dcf018eebe19b84e637c8bfb630ec1.zip |
Merge branch 'maint-0.4.6'
-rwxr-xr-x | scripts/git/git-resquash.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/git/git-resquash.sh b/scripts/git/git-resquash.sh index e0f26ecdc4..f37950c9b0 100755 --- a/scripts/git/git-resquash.sh +++ b/scripts/git/git-resquash.sh @@ -7,7 +7,7 @@ set -e PARENT="$1" -if test "x$PARENT" = "x"; then +if test "$PARENT" = ""; then echo "You must specify the parent branch." exit 1 fi @@ -32,12 +32,12 @@ else USE_KEEP_BASE=1 fi -if test "x$USE_KEEP_BASE" = "x1" ; then +if test "$USE_KEEP_BASE" = "1" ; then exec git rebase -i --autosquash --keep-base "${PARENT}" else REV=$(git log --reverse --format='%H' "${PARENT}..HEAD" | head -1) - if test "x${REV}" = "x"; then + if test "${REV}" = ""; then echo "No changes here since ${PARENT}" exit 1 fi |