Revision: 74216
          http://sourceforge.net/p/brlcad/code/74216
Author:   starseeker
Date:     2019-10-23 00:51:49 +0000 (Wed, 23 Oct 2019)
Log Message:
-----------
use git clone --mirror to strip out the log messages left by the fast-import 
process - want a 'clean' archive as a starting point.

Modified Paths:
--------------
    brlcad/trunk/misc/repoconv/CONVERT.sh

Modified: brlcad/trunk/misc/repoconv/CONVERT.sh
===================================================================
--- brlcad/trunk/misc/repoconv/CONVERT.sh       2019-10-22 22:46:47 UTC (rev 
74215)
+++ brlcad/trunk/misc/repoconv/CONVERT.sh       2019-10-23 00:51:49 UTC (rev 
74216)
@@ -147,8 +147,10 @@
 echo "Archive old branches"
 #NOTE - if done incorrectly this will make a mess with orphaned commits - make
 #a backup first
-cp -r cvs_git cvs_git-pre_archiving
-cd cvs_git && ../archive_branches.sh
+mkdir brlcad_git && cd brlcad_git
+git clone --mirror file://$PWD/cvs_git .git
+git init
+../archive_branches.sh
 
 echo "Do a file git gc --aggressive"
 git gc --aggressive
@@ -158,10 +160,8 @@
 git gc --prune=now
 
 echo "Make the final tar.gz file (NOTE!!! we can't use git bundle for this, it 
drops all the notes with the svn rev info)"
-mkdir brlcad-git
 mv .git brlcad-git
 tar -czf ../brlcad-git.tar.gz brlcad-git
-mv brlcad-git/.git .git
-rmdir brlcad-git
+mv brlcad-git .git
 
 echo "Be aware that by default a checkout of the repo won't get the notes - it 
requires an extra step, see 
https://stackoverflow.com/questions/37941650/fetch-git-notes-when-cloning";

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to