# # patch "git_export.cc" # from [6dca3d75647ad2085c497fe99f245c2c0252f75e] # to [820c17d5b6fe7746d6015470b396ef094fa692e1] # # patch "main.cc" # from [0f905ade02dd9188922f3c04700501c6f7d4b57d] # to [6fab67a365ae920c08b46e3a5cd270e35eb2cdb1] # ======================================================================== --- git_export.cc 6dca3d75647ad2085c497fe99f245c2c0252f75e +++ git_export.cc 820c17d5b6fe7746d6015470b396ef094fa692e1 @@ -430,14 +430,21 @@ atime = string_to_datetime(atimestr); git_person committer; + boost::posix_time::ptime ctime; string commitline; load_cert(app, rid, committer_name, commitline); - committer.name = commitline.substr(0, commitline.find("<") - 1); - commitline.erase(0, commitline.find("<") + 1); - committer.email = commitline.substr(0, commitline.find(">")); - commitline.erase(0, commitline.find(">") + 2); - boost::posix_time::ptime ctime; - ctime = boost::posix_time::from_iso_string(commitline.substr(0, commitline.find(" "))); + if (!commitline.empty()) + { + committer.name = commitline.substr(0, commitline.find("<") - 1); + commitline.erase(0, commitline.find("<") + 1); + committer.email = commitline.substr(0, commitline.find(">")); + commitline.erase(0, commitline.find(">") + 2); + ctime = boost::posix_time::from_iso_string(commitline.substr(0, commitline.find(" "))); + } + else + { + ctime = boost::posix_time::second_clock::universal_time(); + } string logmsg; load_cert(app, rid, changelog_name, logmsg); ======================================================================== --- main.cc 0f905ade02dd9188922f3c04700501c6f7d4b57d +++ main.cc 6fab67a365ae920c08b46e3a5cd270e35eb2cdb1 @@ -270,7 +270,7 @@ sigaction(SIGFPE , &all_signals_action, &old_SIGFPE_action); sigaction(SIGTRAP, &all_signals_action, &old_SIGTRAP_action); - sigaction(SIGSEGV, &all_signals_action, &old_SIGSEGV_action); + //sigaction(SIGSEGV, &all_signals_action, &old_SIGSEGV_action); sigaction(SIGBUS , &all_signals_action, &old_SIGBUS_action); sigaction(SIGABRT, &all_signals_action, &old_SIGABRT_action); @@ -310,7 +310,7 @@ sigaction(SIGFPE , &old_SIGFPE_action , sigaction_ptr()); sigaction(SIGTRAP, &old_SIGTRAP_action, sigaction_ptr()); - sigaction(SIGSEGV, &old_SIGSEGV_action, sigaction_ptr()); + //sigaction(SIGSEGV, &old_SIGSEGV_action, sigaction_ptr()); sigaction(SIGBUS , &old_SIGBUS_action , sigaction_ptr()); sigaction(SIGABRT, &old_SIGABRT_action, sigaction_ptr());