Skip to content

Commit cd45023

Browse files
committed
feat: enable HTTP/2 for Git operations
Set git config http.version=HTTP/2 globally. Falls back to HTTP/1.1 automatically if server doesn't support HTTP/2. Signed-off-by: Mathias Bogaert <[email protected]>
1 parent a53ebaa commit cd45023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RUN git config --global user.email "git@localhost"
3434
RUN git config --global user.name "git"
3535
RUN git config --global pull.rebase "false"
3636
RUN git config --global protocol.file.allow "always"
37+
RUN git config --global http.version "HTTP/2"
3738

3839
# Remove unrelated git binaries we don't need
3940
WORKDIR /usr/libexec/git-core

0 commit comments

Comments
 (0)