@@ -191,7 +191,7 @@ create_issue()
191191 esac
192192 done
193193 shift $(( OPTIND - 1 )) ;
194-
194+
195195 test -n " $1 " || usage_create_issue
196196 test " $2 " = github -o " $2 " = gitlab || usage_create_issue
197197 test -n " $3 " || usage_create_issue
@@ -459,7 +459,7 @@ create_issue()
459459}
460460
461461# Create a comment in GitHub/GitLab, based on a local one
462- # create_comment
462+ # create_comment
463463create_comment ()
464464{
465465 local cbody cfound cjstring csha isha path provider user repo num import_dir url escrepo j
@@ -470,7 +470,7 @@ create_comment()
470470 repo=" $4 "
471471 num=" $5 "
472472
473-
473+
474474 if [ " $provider " = github ] ; then
475475 url=" https://api.github.com/repos/$user /$repo /issues/$num "
476476 else
@@ -528,7 +528,7 @@ create_comment()
528528 git add " $import_dir "
529529 # mark export
530530 commit " gi: Export comment $csha " " gi comment export $csha at $provider $user $repo "
531- rm -f commentupdate-header commentupdate-body commentcreate-header commentcreate-body
531+ rm -f commentupdate-header commentupdate-body commentcreate-header commentcreate-body
532532}
533533
534534# Import GitHub/GitLab comments for the specified issue
@@ -736,7 +736,7 @@ import_issues()
736736 echo " $timespent " > " $path /timespent" || trans_abort
737737 git add " $path /timespent" || trans_abort
738738 fi
739-
739+
740740 # Timeestimate
741741 timeestimate=$( jq -r " .[$i ].time_stats.time_estimate" issue-body)
742742 if [ " $timeestimate " = ' 0' ] ; then
@@ -804,7 +804,7 @@ export_issues()
804804 esac
805805 done
806806 shift $(( OPTIND - 1 )) ;
807-
807+
808808 test -n " $2 " -a -n " $3 " || usage_export
809809 test " $1 " = github -o " $1 " = gitlab || usage_export
810810 provider=$1
@@ -821,7 +821,7 @@ export_issues()
821821 # Extract number
822822 num=$( echo " $i " | grep -o ' /[0-9].*$' | tr -d ' /' )
823823 # Check if the issue has been modified since last import/export
824- lastimport=$( git rev-list --grep " gi: \\ (Add imports/$provider /$user /$repo /$num \\ |Import issue #$num from github /$user /$repo \\ )" HEAD | head -n 1)
824+ lastimport=$( git rev-list --grep " gi: \\ (Add imports/$provider /$user /$repo /$num \\ |Import issue #$num from $provider /$user /$repo \\ )" HEAD | head -n 1)
825825 test -n " $lastimport " || error " Cannot find import commit."
826826 if [ -n " $( git rev-list --grep=' \(gi: Import comment message\|gi: Add comment message\|gi: Edit comment\)' --invert-grep " $lastimport " ..HEAD " $path " ) " ] ; then
827827 echo " Exporting issue $sha as #$num "
0 commit comments