git-migration: pld-git.sh - cleanup incomplete imports on error
glen
glen at pld-linux.org
Thu Feb 10 06:05:37 CET 2011
Author: glen Date: Thu Feb 10 05:05:37 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- cleanup incomplete imports on error
---- Files affected:
git-migration:
pld-git.sh (1.18 -> 1.19)
---- Diffs:
================================================================
Index: git-migration/pld-git.sh
diff -u git-migration/pld-git.sh:1.18 git-migration/pld-git.sh:1.19
--- git-migration/pld-git.sh:1.18 Thu Feb 10 06:04:01 2011
+++ git-migration/pld-git.sh Thu Feb 10 06:05:32 2011
@@ -113,7 +113,10 @@
export GIT_DIR=$gitdir/$pkg
git init
- CVS_REPO=packages/$pkg cvs2git --options=cvs2git.options
+ CVS_REPO=packages/$pkg cvs2git --options=cvs2git.options || {
+ rm -rf $GIT_DIR
+ exit 1
+ }
git fast-import --export-marks=cvs2svn-tmp/cvs2git.marks < cvs2svn-tmp/git-blob.dat
git fast-import --import-marks=cvs2svn-tmp/cvs2git.marks < cvs2svn-tmp/git-dump.dat
./cvs2git_fixes.sh $pkg
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/pld-git.sh?r1=1.18&r2=1.19&f=u
More information about the pld-cvs-commit
mailing list