Revision: 76462
          http://sourceforge.net/p/brlcad/code/76462
Author:   starseeker
Date:     2020-07-24 12:22:54 +0000 (Fri, 24 Jul 2020)
Log Message:
-----------
Ah - a fast-import generated without original-oid information won't work if 
we're dealing with notes - check and bail instead of proceeding.

Modified Paths:
--------------
    brlcad/trunk/misc/repowork/repowork.cpp

Modified: brlcad/trunk/misc/repowork/repowork.cpp
===================================================================
--- brlcad/trunk/misc/repowork/repowork.cpp     2020-07-24 05:24:27 UTC (rev 
76461)
+++ brlcad/trunk/misc/repowork/repowork.cpp     2020-07-24 12:22:54 UTC (rev 
76462)
@@ -58,6 +58,11 @@
            continue;
        }
 
+       if (!s->commits[i].id.sha1.length()) {
+           std::cerr << "Fatal - notes unpacking requested, but don't have 
original sha1 ids - redo fast-export with the --show-original-ids option.\n";
+           exit(1);
+       }
+
        // This is cheap and clunky, but I've not yet found a document
        // describing how to reliably unpack git notes...
        std::string git_notes_cmd = std::string("cd ") + repo_path + 
std::string(" && git log -1 ") + s->commits[i].id.sha1 + std::string(" 
--pretty=format:\"%N\" > ../sha1.txt && cd ..");

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