[gnome-git-migration] Remove backup refs left by filter-branch.
- From: Kristian Høgsberg <krh src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-git-migration] Remove backup refs left by filter-branch.
- Date: Wed, 1 Apr 2009 11:38:47 -0400 (EDT)
commit 961abab584bc6016515ddfffacc89a2bf0fb2bcc
Author: Kristian Høgsberg <krh redhat com>
Date: Wed Apr 1 11:38:36 2009 -0400
Remove backup refs left by filter-branch.
---
import/fixup.sh | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/import/fixup.sh b/import/fixup.sh
index 25955a3..a7b5a81 100755
--- a/import/fixup.sh
+++ b/import/fixup.sh
@@ -45,4 +45,11 @@ done
git filter-branch -f --commit-filter ${PWD}'/gnome-edit-changelog $@' --tag-name-filter cat -- --all
+# Delete backup refs created by filter-branch
+git for-each-ref --format="%(refname)" refs/original | while read ref; do
+ git update-ref -d $ref;
+done
+
+rm -rf $GIT_DIR/refs/original
+
git repack -a -d -f --window=50 --depth=20
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]