summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-05-28 08:03:43 -0400
committerNick Mathewson <nickm@torproject.org>2021-05-28 08:03:43 -0400
commitf8d028e14a301a77696144fd2bcab91becf51921 (patch)
treecce1e5c6fa924459c25aab900b61145f030df64c
parent6d11a0c61f4cda79cdc446066ac49191de6ad57d (diff)
parent8b6e919086ad6dde681516fe52d744afa3ffcc89 (diff)
downloadtor-f8d028e14a301a77696144fd2bcab91becf51921.tar.gz
tor-f8d028e14a301a77696144fd2bcab91becf51921.zip
Merge branch 'maint-0.4.5' into release-0.4.5
-rwxr-xr-xscripts/git/git-resquash.sh6
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