summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <klto@zhaw.ch>2010-01-04 13:07:18 +0100
committerTobias Klauser <klto@zhaw.ch>2010-01-04 13:07:18 +0100
commitfca82126ffd1529b3e99863da562f86a5f8723d9 (patch)
tree2b2791cc3cc68742b130a7347ffa2bb56f2070b1
parent21c968ffbdb1d9617037b440d4d05758141e7604 (diff)
Add script to sync git repos to subversion repos
Based on http://google-opensource.blogspot.com/2008/05/export-git-project-to-google-code.html
-rwxr-xr-xgit2svn-sync30
1 files changed, 30 insertions, 0 deletions
diff --git a/git2svn-sync b/git2svn-sync
new file mode 100755
index 0000000..dbb4fc4
--- /dev/null
+++ b/git2svn-sync
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Sync git repository to subversion repository.
+#
+# Based on http://google-opensource.blogspot.com/2008/05/export-git-project-to-google-code.html
+
+if [ $# -lt 2 ] ; then
+ echo "usage: ${0} GIT_REPO GIT_SVN_REPO_CHECKOUT"
+ exit 2
+fi
+
+GIT_REPO=$1
+GIT_SVN_REPO_CHECKOUT=$2
+
+if [ ! -d $GIT_SVN_REPO_CHECKOUT/.git/svn ] ; then
+ echo "error: no git-svn checkout found in $GIT_SVN_REPO_CHECKOUT"
+ exit 3
+fi
+
+export GIT_DIR=$GIT_SVN_REPO_CHECKOUT
+git fetch $GIT_REPO
+git branch tmp $(cut -b-40 .git/FETCH_HEAD)
+git tag -a -m "Last fetch" newlast tmp
+git rebase --onto master last tmp
+git branch -M tmp master
+git svn dcommit
+mv $GIT_SVN_REPO_CHECKOUT/.git/refs/newlast \
+ $GIT_SVN_REPO_CHECKOUT/.git/refs/last
+
+# vim:ft=sh
tely determine the type of the bad accessAndrey Konovalov1-3/+14 2015-11-05kasan: update reported bug types for kernel memory accessesAndrey Konovalov1-7/+11 2015-11-05kasan: update reported bug types for not user nor kernel memory accessesAndrey Konovalov1-27/+23 2015-11-05mm/kasan: prevent deadlock in kasan reportingAneesh Kumar K.V1-2/+10 2015-11-05mm/kasan: don't use kasan shadow pointer in generic functionsAneesh Kumar K.V1-2/+8 2015-11-05mm/kasan: MODULE_VADDR is not available on all archsAneesh Kumar K.V1-3/+6 2015-11-05mm/kasan: rename kasan_enabled() to kasan_report_enabled()Aneesh Kumar K.V1-1/+1 2015-08-14.mailmap: Andrey Ryabinin has movedAndrey Ryabinin1-1/+1 2015-02-13kasan: enable instrumentation of global variablesAndrey Ryabinin1-0/+22 2015-02-13kasan: enable stack instrumentationAndrey Ryabinin1-0/+6 2015-02-13mm: slub: add kernel address sanitizer support for slub allocatorAndrey Ryabinin1-0/+21 2015-02-13mm: page_alloc: add kasan hooks on alloc and free pathsAndrey Ryabinin1-0/+11 2015-02-13kasan: add kernel address sanitizer infrastructureAndrey Ryabinin1-0/+209