git-migration: pld-git.sh - remove refs of original commits
draenog
draenog at pld-linux.org
Mon Feb 14 18:28:38 CET 2011
Author: draenog Date: Mon Feb 14 17:28:38 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- remove refs of original commits
---- Files affected:
git-migration:
pld-git.sh (1.28 -> 1.29)
---- Diffs:
================================================================
Index: git-migration/pld-git.sh
diff -u git-migration/pld-git.sh:1.28 git-migration/pld-git.sh:1.29
--- git-migration/pld-git.sh:1.28 Mon Feb 14 14:33:20 2011
+++ git-migration/pld-git.sh Mon Feb 14 18:28:32 2011
@@ -126,6 +126,10 @@
# make final changes to converted repos by git-filter-branch
git filter-branch --tree-filter ". $tree_filter" -- --all
+ # clear all refs
+ git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
+ git gc --prune=now
+
# add origin remote
git remote add origin git at github.com:pld-linux/$pkg.git
# do some space
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/pld-git.sh?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list