Add scripts/vnc-client to git-migration.
[invirt/scripts/git-migration.git] / git-migrate-fast.sh
index d63a20f..1f977bd 100755 (executable)
@@ -16,9 +16,10 @@ done
 svn-all-fast-export --identity-map ../authors ../rules "$SVN"
 
 sed -n 's/^create repository // p' ../rules | while read repo; do
-    ! [ -e "$repo/refs/heads/tags" ] || \
-       cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \
-       rm -rf "$repo/refs/heads/tags"
+    if [ -e "$repo/refs/heads/tags" ]; then
+        cp -a "$repo/refs/heads/tags/." "$repo/refs/tags"
+        rm -rf "$repo/refs/heads/tags"
+    fi
 done
 
 pushd packages/invirt-remote.git
@@ -39,6 +40,13 @@ git filter-branch --tag-name-filter cat -- ^sipb-xen-dns/1~11 ^dns --all
 rm -rf info/grafts refs/original refs/heads/dns
 popd
 
+pushd packages/invirt-database-server.git
+git fetch ../invirt-database.git refs/tags/0.0.1:refs/heads/tmp
+echo $(git rev-parse 0.0.1 refs/heads/tmp^) >> info/grafts
+git filter-branch --tag-name-filter cat -- ^refs/heads/tmp --all
+rm -rf info/grafts refs/original refs/heads/tmp
+popd
+
 pushd packages/libyaml.git
 git fetch git://andersk.mit.edu/libyaml.git refs/tags/upstream/0.1.1:refs/tags/upstream/0.1.1 refs/tags/debian/0.1.1-1:refs/tags/debian/0.1.1-1
 git branch upstream upstream/0.1.1