Skip to content

Commit b8c69cb

Browse files
authored
Codespace fixes (#962)
* add safe directory marking in devcontainer * remove no-history option for ghp_import * clean up some info lines * format * update changelog and core commit
1 parent 53f88cf commit b8c69cb

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Instructions: Add a subsection under `[Unreleased]` for additions, fixes, change
99

1010
## [Unreleased]
1111

12+
### Fixed
13+
14+
- Bug preventing some repositories from using `pretext deploy`.
15+
1216
## [2.17.0] - 2025-04-09
1317

1418
Includes updates to core through commit: [2c3fda7](https://github.com/PreTeXtBook/pretext/commit/2c3fda724738cabba04c28378f91a64a72a0e7c2)

pretext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
VERSION = get_version("pretext", Path(__file__).parent.parent)
2020

21-
CORE_COMMIT = "2c3fda724738cabba04c28378f91a64a72a0e7c2"
21+
CORE_COMMIT = "7936f3fd1595439fe86adc44ea9a4f8045372801"
2222

2323

2424
def activate() -> None:

pretext/utils.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,7 @@ def publish_to_ghpages(
720720
log.info("")
721721
# Should we let ghp_import do the push for us?
722722
# Should we remove the history?
723-
ghp_import.ghp_import(
724-
directory,
725-
mesg="Latest build deployed.",
726-
nojekyll=True,
727-
no_history=True,
728-
)
723+
ghp_import.ghp_import(directory, mesg="Latest build deployed.", nojekyll=True)
729724
log.info(f"Attempting to connect to remote repository at `{origin.url}`...")
730725
# log.info("(Your SSH password may be required.)")
731726
log.info("")
@@ -778,16 +773,14 @@ def publish_to_ghpages(
778773
log.error("Deploy was unsuccessful.")
779774
return
780775
log.info("")
781-
log.info("Latest build successfully pushed to GitHub!")
776+
log.info("Latest build successfully pushed to GitHub!\n")
782777
log.info("")
783778
log.info("To enable GitHub Pages, visit")
784779
log.info(f" {repo_url}settings/pages")
785-
log.info("selecting the `gh-pages` branch with the `/ (root)` folder.")
786-
log.info("")
780+
log.info("selecting the `gh-pages` branch with the `/ (root)` folder.\n")
787781
log.info("Visit")
788782
log.info(f" {repo_url}actions/")
789-
log.info("to check on the status of your GitHub Pages deployment.")
790-
log.info("")
783+
log.info("to check on the status of your GitHub Pages deployment.\n")
791784
log.info("Your built project will soon be available to the public at:")
792785
log.info(f" {pages_url}")
793786

templates/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
// "install sagemath": "bash ./.devcontainer/installSage.sh",
2222
"install pandoc": "bash ./.devcontainer/installPandoc.sh",
2323
"install latex": "bash ./.devcontainer/installLatex.sh",
24-
"install pretext": "bash ./.devcontainer/installPretext.sh"
24+
"install pretext": "bash ./.devcontainer/installPretext.sh",
25+
"mark repo as safe": "git config --global --add safe.directory $(pwd)"
2526
},
2627

2728

0 commit comments

Comments
 (0)