[Pkg-ocaml-maint-commits] r5328 - /trunk/tools/svn2git/svn2git_alioth
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Mon Mar 17 18:57:59 UTC 2008
Author: zack
Date: Mon Mar 17 18:57:59 2008
New Revision: 5328
URL: http://svn.debian.org/wsvn/?sc=1&rev=5328
Log:
add best practices for cleaning up the history after filter-branch
Modified:
trunk/tools/svn2git/svn2git_alioth
Modified: trunk/tools/svn2git/svn2git_alioth
URL: http://svn.debian.org/wsvn/trunk/tools/svn2git/svn2git_alioth?rev=5328&op=diff
==============================================================================
--- trunk/tools/svn2git/svn2git_alioth (original)
+++ trunk/tools/svn2git/svn2git_alioth Mon Mar 17 18:57:59 2008
@@ -78,7 +78,10 @@
rm_tarballs () {
info " remove .tar.gz tarballs from git history"
(cd "$wdir"
- git filter-branch --tree-filter "find . -name \"$TGZ_PATTERN\" -exec rm {} \;" HEAD)
+ git filter-branch --tree-filter "find . -name \"$TGZ_PATTERN\" -exec rm {} \;" HEAD
+ git reset --hard
+ rm -rf .git/refs/original/
+ git reflog expire --all --expire-unreachable=0)
}
clean_repo () {
More information about the Pkg-ocaml-maint-commits
mailing list