Skip to content

Commit 0920be6

Browse files
committed
Merge branch 'update-libsbp-build' into fix-python-warnings
2 parents 8b39a8f + 09fdfa9 commit 0920be6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

generator/sbpg/targets/latex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ def render_source(output_dir, package_specs, version: ReleaseVersion):
354354
os.chdir(output_dir)
355355
if "TEXMFVAR" not in os.environ:
356356
os.environ["TEXMFVAR"] = "/tmp"
357+
# fix "dubious ownership in repository" error with git 2.35.2 and later
358+
os.chown("..", os.environ["UID"], -1)
357359
subprocess.check_call(["pdflatex", "--enable-write18",
358360
"-shell-escape", "sbp_out.tex"])
359361
subprocess.check_call(["mv", "sbp_out.pdf", "../docs/sbp.pdf"])

generator/sbpg/targets/resources/sbp_base.tex

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

6464
% Shell out to git to get the most recent tag and pass it to the LateX
6565
% job name. Hopefully this doesn't screw with things.
66-
\immediate\write18{git -c global.safe-directory=* describe --abbrev=0 --tags | cut -c 2-5 > \jobname.info }
66+
\immediate\write18{git describe --abbrev=0 --tags | cut -c 2-5 > \jobname.info }
6767

6868
\title{Swift Navigation Binary Protocol}
6969
\author{Swift Navigation}

0 commit comments

Comments
 (0)