Skip to content

Commit f70904e

Browse files
committed
Merge branch 'update-libsbp-build' into fix-python-warnings
2 parents 7d20f09 + 44ee7c3 commit f70904e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

generator/sbpg/targets/latex.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,6 @@ 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-
subprocess.check_call(["git", "config", "--global", "--add",
359-
"safe-directory", ".."])
360357
subprocess.check_call(["pdflatex", "--enable-write18",
361358
"-shell-escape", "sbp_out.tex"])
362359
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 describe --abbrev=0 --tags | cut -c 2-5 > \jobname.info }
66+
\immediate\write18{git -c global.safe-directory=.. 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)