Skip to content

Commit 812bc88

Browse files
Call ls_remote
1 parent be83906 commit 812bc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ cd "$source"
6363
cd "$path"
6464

6565
merge_commit=$(git rev-parse HEAD)
66+
ls_remote=$(git ls-remote "$uri")
6667

6768
# collect prq id from git config stored in git config (during get step)
6869
# included cat to catch error
6970
prq_number=$(git config --get pullrequest.id | cat)
7071

7172
if [ -z "$prq_number" ]; then
72-
ls_remote=$(git ls-remote "$uri")
7373
prqs=$(echo "$ls_remote" | grep -E "/pull\-requests/[0-9]+" | grep "$merge_commit" | cat)
7474

7575
# search for prq from commits in git ls-remote that match current commit

0 commit comments

Comments
 (0)