summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhg-fast-export.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/hg-fast-export.sh b/hg-fast-export.sh
index cc720f3..7dd918c 100755
--- a/hg-fast-export.sh
+++ b/hg-fast-export.sh
@@ -70,6 +70,11 @@ if [ x"$REPO" = x -a -f "$GIT_DIR/$PFX-$SFX_STATE" ] ; then
echo "Using last hg repository \"$REPO\""
fi
+if [ -z "$REPO" ]; then
+ echo "no repo given, use -r flag"
+ exit 1
+fi
+
# make sure we have a marks cache
if [ ! -f "$GIT_DIR/$PFX-$SFX_MARKS" ] ; then
touch "$GIT_DIR/$PFX-$SFX_MARKS"