diff --git a/hg2git.sh b/hg2git.sh index 7f0df86..bb05ea0 100644 --- a/hg2git.sh +++ b/hg2git.sh @@ -15,6 +15,9 @@ git config core.ignoreCase false /usr/local/src/fast-export/hg-fast-export.sh -r /work/$PROJECT_NAME -git checkout HEAD - -bash +if [ "$?" -ne "0" ]; then + exit 1 +else + git checkout HEAD + bash +fi \ No newline at end of file