Pass option -u to git-cvsimport. Omit scp upload.
[git-tools-moved-to-github.git] / id-cvs-to-git.sh
index 07971b7..4d07723 100755 (executable)
@@ -1,5 +1,16 @@
 #!/bin/sh
-# Upload NEW Git Project to master.
+# id-cvs-to-git.sh: Creates new bare Git Project from CVS
+#
+# Usage:
+#  id-cvs-to-git.sh source project description
+# source: is a GIT project source or 'CVS'
+# project: is the GIT project name (destination) and project source (If CVS)
+# description: description for the project
+# 
+# Convert YAZ from CVS to Git and upload:
+#  id-cvs-to-git.sh CVS yaz "Yet another Z39.50 toolkit"
+# Upload new project 'newproject' from repository ../newproject
+#  ic-cvs-to-git.sh ../newproject newproject "My new project"
 SRC=$1
 P=$2
 DESC="$3"
@@ -20,7 +31,7 @@ if test "$SRC" = "CVS"; then
        rm -fr import_project
        mkdir import_project
        cd import_project
-       git-cvsimport -A ../import.names -v $P
+       git-cvsimport -u -A ../import.names -v $P
        cd ..
        git clone --bare import_project ${P}.git
 else
@@ -28,4 +39,3 @@ else
 fi
 touch ${P}.git/git-daemon-export-ok
 echo $DESC > ${P}.git/description
-scp -r ${P}.git git.indexdata.com:/home/git/pub