emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Support building Org from shallow clone [9.6.1 (release_9.6.1-13


From: No Wayman
Subject: [PATCH] Support building Org from shallow clone [9.6.1 (release_9.6.1-137-gecb62e @ /home/n/.emacs.d/elpaca/builds/org/)]
Date: Sun, 15 Jan 2023 15:01:51 -0500
User-agent: mu4e 1.9.12; emacs 30.0.50


In order to properly generate org-version.el, the current build in mk/targets.mk requires a query of the repo's tags. Shallow clones do not have tags and so org-version will be generated as "N/A". In the attached patch, support for generating org-version.el from shallow clones is added. It is done by querying the upstream remote via git ls-remote and parsing the output. In this case, a more well formed org-version string will be generated. However, it will be missing the "commits since last tag" information. e.g.

"release_9.6.1-n/a-gabc123"

Attachment: 0001-mk-targets.mk-GITVERSION-support-shallow-repo-clones.patch
Description: Text Data


Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6)
of 2023-01-08
Package: Org mode version 9.6.1 (release_9.6.1-137-gecb62e @ /home/n/.emacs.d/elpaca/builds/org/)
reply via email to

[Prev in Thread] Current Thread [Next in Thread]