Signed-off-by: Yann Dirson <ydirson@xxxxxxxxxx> --- cg-admin-rewritehist | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cg-admin-rewritehist b/cg-admin-rewritehist index fe3f210..7cbdb30 100755 --- a/cg-admin-rewritehist +++ b/cg-admin-rewritehist @@ -154,6 +154,8 @@ while optparse; do if optparse -d=; then tempdir="$OPTARG" elif optparse -r=; then + git-rev-parse "$OPTARG" >/dev/null || die "Unknown revision '$OPTARG'" + git-rev-parse "$OPTARG^" >/dev/null || die "Revision '$OPTARG' does not have parents, check what you really want" startrev="^$OPTARG^ $OPTARG $startrev" startrevparents="$OPTARG $startrevparents" elif optparse --env-filter=; then - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html