Skip to content

Commit

Permalink
Merge branch 'maint-0.4.5' into release-0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed May 28, 2021
2 parents 6d11a0c + 8b6e919 commit f8d028e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/git/git-resquash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f8d028e

Please sign in to comment.