FIP: get trunk commit list error. [1/1]

PD#SWPL-88283

Problem:
get trunk commit list

Solution:
modify git_commits_2_src_link.py

Verify:
local

Change-Id: Ife217eba1db5ab3786aebbd454640a51085fd18c
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
diff --git a/git_commits_2_src_link.py b/git_commits_2_src_link.py
index 49b4bfc..39e139e 100755
--- a/git_commits_2_src_link.py
+++ b/git_commits_2_src_link.py
@@ -147,6 +147,10 @@
     for i in range(len(trunk_list)):
         print(' > [%d] gitPath: %-12s  lastCommit: %s'%(i+1, trunk_list[i]['gitPath'], trunk_list[i]['lastCommit']))
 
+        if len(trunk_list[i]['lastCommit']) == 0:
+            print(' >     lastCommit is NULL !')
+            continue
+
         try:
             os.chdir(topdir + trunk_list[i]['gitPath'])
         except:
@@ -233,6 +237,8 @@
             log_list[i] = str(re.sub(r'" into', r'> into', str(log_list[i])))
             log_list[i] = str(re.sub(r'Revert "', r'Revert <', str(log_list[i])))
             log_list[i] = str(re.sub(r'"",', r'>",', str(log_list[i])))
+            log_list[i] = str(re.sub(r' "', r' <', str(log_list[i])))
+            log_list[i] = str(re.sub(r'" ', r'> ', str(log_list[i])))
 
             if debug_enable:
                 print(' >    [%d] %s'%(i,log_list[i]))
@@ -244,6 +250,9 @@
         real_log_list = [eval(str(item)) for item in log_list]
     except:
         real_log_list = []
+        if debug_enable:
+            print(' >    eval(str(item)) ERROR!')
+            print(' >    %s'%(log_list))
         pass
 
     # update real_log_list[i]['pd'] with JiraNo