From 98b3a77b477b11d5e9149cccbf74dce1cfed42c3 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 12 Apr 2022 16:47:28 +0200 Subject: [PATCH] Disable git terminal prompt when detecting remote HEAD branch. (#1797) --- CHANGELOG.md | 4 +++- src/Documenter.jl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d2bb29c29..8f272b359b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,10 @@ ## Unreleased * ![Enhancement][badge-enhancement] Update CSS source file for JuliaMono, so that all font variations are included (not just `JuliaMono Regular`) and that the latest version (0.039 -> 0.044) of the font would be used. ([#1780][github-1780], [#1784][github-1784]) -* ![Bugfix][badge-bugfix] Fix `strict` mode to properly print errors, not just a warnings. ([#1756][github-1756], [#1776][github-1776]) * ![Enhancement][badge-enhancement] The table of contents in the generated PDFs have more space between section numbers and titles to avoid them overlapping. ([#1785][github-1785]) * ![Enhancement][badge-enhancement] The preamble of the LaTeX source of the PDF build can now be customized by the user. ([#1746][github-1746], [#1788][github-1788]) +* ![Bugfix][badge-bugfix] Fix `strict` mode to properly print errors, not just a warnings. ([#1756][github-1756], [#1776][github-1776]) +* ![Bugfix][badge-bugfix] Disable git terminal prompt when detecting remote HEAD branch. ([#1797][github-1797]) ## Version `v0.27.15` @@ -1001,6 +1002,7 @@ [github-1784]: https://github.com/JuliaDocs/Documenter.jl/pull/1784 [github-1785]: https://github.com/JuliaDocs/Documenter.jl/pull/1785 [github-1788]: https://github.com/JuliaDocs/Documenter.jl/pull/1788 +[github-1797]: https://github.com/JuliaDocs/Documenter.jl/pull/1797 [julia-38079]: https://github.com/JuliaLang/julia/issues/38079 diff --git a/src/Documenter.jl b/src/Documenter.jl index e664e65319..8c6ac54faa 100644 --- a/src/Documenter.jl +++ b/src/Documenter.jl @@ -503,7 +503,9 @@ function deploydocs(; # Try to figure out default branch (see #1443 and #1727) if devbranch === nothing str = try - read(pipeline(ignorestatus(setenv(`git remote show origin`; dir=root)); stderr=devnull), String) + read(pipeline(ignorestatus( + setenv(`git remote show origin`, ["GIT_TERMINAL_PROMPT=0"]; dir=root) + ); stderr=devnull), String) catch "" end