diff --git a/cmd/relui/Dockerfile b/cmd/relui/Dockerfile index bfe6ab1424..7a9f264cb8 100644 --- a/cmd/relui/Dockerfile +++ b/cmd/relui/Dockerfile @@ -19,7 +19,7 @@ FROM debian:bookworm RUN apt-get update && apt-get install -y \ --no-install-recommends \ - tini ca-certificates + tini ca-certificates git ARG PORT=8080 ENV PORT=${PORT} diff --git a/internal/task/git.go b/internal/task/git.go index ce98a2d089..6c94273e2c 100644 --- a/internal/task/git.go +++ b/internal/task/git.go @@ -61,7 +61,7 @@ func (g *Git) runGitStreamed(ctx context.Context, stdout, stderr io.Writer, dir return err } // https://github.com/curl/curl/blob/master/docs/HTTP-COOKIES.md - cookieLine := fmt.Sprintf(".googlesource.com TRUE / TRUE %v o %v\n", tok.Expiry.Unix(), tok.AccessToken) + cookieLine := fmt.Sprintf(".googlesource.com\tTRUE\t/\tTRUE\t%v\to\t%v\n", tok.Expiry.Unix(), tok.AccessToken) if err := os.WriteFile(g.cookieFile, []byte(cookieLine), 0o700); err != nil { return fmt.Errorf("error writing git cookies: %v", err) }