Skip to content

Commit

Permalink
Disable git terminal prompt when detecting remote HEAD branch. (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Apr 12, 2022
1 parent 401718b commit 98b3a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -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
<!-- end of issue link definitions -->

[julia-38079]: https://github.com/JuliaLang/julia/issues/38079
Expand Down
4 changes: 3 additions & 1 deletion src/Documenter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98b3a77

Please sign in to comment.