git-migration: pld-git.sh - if git filter-branch changed nothing then refs/...

draenog draenog at pld-linux.org
Tue Mar 29 16:36:27 CEST 2011


Author: draenog                      Date: Tue Mar 29 14:36:27 2011 GMT
Module: git-migration                 Tag: HEAD
---- Log message:
- if git filter-branch changed nothing then refs/original/* returns also 
  nothing

---- Files affected:
git-migration:
   pld-git.sh (1.36 -> 1.37) 

---- Diffs:

================================================================
Index: git-migration/pld-git.sh
diff -u git-migration/pld-git.sh:1.36 git-migration/pld-git.sh:1.37
--- git-migration/pld-git.sh:1.36	Fri Mar 18 18:16:12 2011
+++ git-migration/pld-git.sh	Tue Mar 29 16:36:22 2011
@@ -133,7 +133,7 @@
 		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 for-each-ref --format="%(refname)" refs/original/ | xargs -r -n 1 git update-ref -d
 		git gc --prune=now
 
 		# add origin remote
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/pld-git.sh?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list