Skip to content

Commit 9a0b022

Browse files
committed
Merge branch 'master' of github.com:dspinellis/git-issue
2 parents c9b43f9 + d8e221a commit 9a0b022

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/git-issue/import-export.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ create_issue()
221221
# if assignee is valid github should return no data
222222
if [ -n "$ret" ] ; then
223223
echo "Couldn't add assignee $a. Skipping..."
224-
assignee=$(echo "$assignee" | sed "s/\($a \| $a\|^$a$\)//")
224+
assignee=$(echo "$assignee" | sed "s/\\($a \\| $a\\|^$a$\\)//")
225225
fi
226226
done
227227
if [ "$assignee" != '[]' ] ; then
@@ -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 github/$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"
@@ -838,7 +838,7 @@ export_issues()
838838
local csha cfound
839839
git rev-list --reverse --grep="^gi comment mark $sha" HEAD |
840840
while read -r csha ; do
841-
lastimport=$(git rev-list --grep "\(gi comment message .* $csha\|gi comment export $csha at $provider $user $repo\)" HEAD | head -n 1)
841+
lastimport=$(git rev-list --grep "\\(gi comment message .* $csha\\|gi comment export $csha at $provider $user $repo\\)" HEAD | head -n 1)
842842
cfound=
843843
for j in "imports/$provider/$user/$repo/$num"/comments/* ; do
844844
if [ "$(cat "$j" 2> /dev/null)" = "$csha" ] ; then

test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ else
531531
# delete repo
532532
curl -H "$GH_CURL_AUTH" -s --request DELETE $ghrepourl |
533533
grep "{" && printf "Couldn't delete repository.
534-
You probably don't have delete permittions activated on the OAUTH token.\nPlease delete %s manually." "$ghrepo"
534+
You probably don't have delete permittions activated on the OAUTH token.\\nPlease delete %s manually." "$ghrepo"
535535

536536
else
537537
echo "Couldn't create test repository. Skipping export tests."
@@ -645,7 +645,7 @@ else
645645
# delete repo
646646
curl -H "$GL_CURL_AUTH" -s --request DELETE $glrepourl |
647647
grep "Accepted" > /dev/null || printf "Couldn't delete repository.
648-
You probably don't have delete permittions activated on the OAUTH token.\nPlease delete %s manually." "$glrepo"
648+
You probably don't have delete permittions activated on the OAUTH token.\\nPlease delete %s manually." "$glrepo"
649649
else
650650
echo "Couldn't create test repository. Skipping export tests."
651651
fi

0 commit comments

Comments
 (0)