Skip to content

Commit 40924ee

Browse files
author
Hugo Hörnquist
committed
Fix rest_next_page_url for page 2 and up.
The code before replaced the start of the link header with the literal string "[Ll]ink". This changes it to the correct string "Link".
1 parent 261b010 commit 40924ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git-issue/import-export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ s/^[Ll]ink:.<\([^>]*\)>; rel="next".*/\1/p
873873
# If substitution worked branch to end of script
874874
t
875875
# Remove first element of the Link header and retry
876-
s/^[Ll]ink: <[^>]*>; rel="[^"]*", */[Ll]ink: /
876+
s/^[Ll]ink: <[^>]*>; rel="[^"]*", */Link: /
877877
t again
878878
' "$1"-header
879879
}

0 commit comments

Comments
 (0)