Skip to content

Use bounded git rev-list for version detection#5201

Open
pavelToman wants to merge 1 commit into
easybuilders:developfrom
pavelToman:patch-2
Open

Use bounded git rev-list for version detection#5201
pavelToman wants to merge 1 commit into
easybuilders:developfrom
pavelToman:patch-2

Conversation

@pavelToman

@pavelToman pavelToman commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

EasyBuild only needs the current HEAD commit hash for version detection,
but git rev-list HEAD walks the full commit history and can be slow on
large repositories or high-latency filesystems.

Limit rev-list to one commit via git rev-list -n 1 HEAD. This preserves
the existing GitPython-based implementation while avoiding unnecessary
history traversal.

*this PR was created with help of ChatGPT5.5

EasyConfig PR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants