Revision: 76553
          http://sourceforge.net/p/brlcad/code/76553
Author:   starseeker
Date:     2020-07-28 10:01:44 +0000 (Tue, 28 Jul 2020)
Log Message:
-----------
Check branch string for invalid chars before attempting a CVS checkout.

Modified Paths:
--------------
    brlcad/trunk/misc/repoconv/verify/verify.cpp

Modified: brlcad/trunk/misc/repoconv/verify/verify.cpp
===================================================================
--- brlcad/trunk/misc/repoconv/verify/verify.cpp        2020-07-28 08:10:45 UTC 
(rev 76552)
+++ brlcad/trunk/misc/repoconv/verify/verify.cpp        2020-07-28 10:01:44 UTC 
(rev 76553)
@@ -209,6 +209,13 @@
 
 int verify_repos_cvs(std::ofstream &cvs_problem_sha1s, cmp_info &info, 
std::string &branch, std::string git_repo, std::string cvs_repo) {
     std::string cvs_cmd;
+
+    std::regex tag_invalid(".*[$,.:;@].*");
+    if (std::regex_match(branch, tag_invalid)) {
+       std::cout << "Branch name contains invalid char, cannot be checked out 
by CVS, skipping\n";
+       return 0;
+    }
+
     if (branch == std::string("trunk") || branch == std::string("master")) {
        cvs_cmd = std::string("cvs -d ") + cvs_repo + std::string(" -Q co -ko 
-D \"") + info.cvs_date + std::string("\" -P brlcad");
     } else {

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