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 () {
_______________________________________________
Pkg-ocaml-maint-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-ocaml-maint-commits