# Root-config --git-revision does not work

**URL:** <https://root-forum.cern.ch/t/root-config-git-revision-does-not-work/57527>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [December 13, 2023, 5:10pm UTC](https://root-forum.cern.ch/t/root-config-git-revision-does-not-work/57527 "2023-12-13T17:10:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jprochaz](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@jprochaz](https://root-forum.cern.ch/u/jprochaz)\
**Post date:** [December 13, 2023, 5:10pm UTC](https://root-forum.cern.ch/t/root-config-git-revision-does-not-work/57527/1 "2023-12-13T17:10:38Z")

</div>

* * *

### Describe the bug

`$ root-config --git-revision`  
head: invalid option – ‘m’  
Try ‘head --help’ for more information.  
tail: option requires an argument – ‘n’  
Try ‘tail --help’ for more information.

### Expected behavior

A git revision should be returned

### To Reproduce

run `root-config --git-revision` on the command line

### Setup

```auto
ROOT v6.30/02
Built for linuxx8664gcc on Dec 04 2023, 17:56:08
From heads/master@tags/v6-30-02

```

ROOT installation

```auto
mamba create --name xxx root
conda activate xxx

```

### Additional context

If ROOT 6.28.04 then `root-config --git-revision` returns nothing (empty msg), which is also wrong.

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [December 14, 2023, 12:31am UTC](https://root-forum.cern.ch/t/root-config-git-revision-does-not-work/57527/2 "2023-12-14T00:31:14Z")

</div>

Hi, thanks for reporting this!

I just tried with ROOT master, and `root-config --git-revision` also doesn’t work there.

Therefore, this is not a question about ROOT but a bug report. Can you please open a bug report on GitHub?

> **[Build software better, together](https://github.com/root-project/root/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

Like this, someone will take care of it.

Cheers,  
Jonas

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 14, 2023, 10:03am UTC](https://root-forum.cern.ch/t/root-config-git-revision-does-not-work/57527/3 "2023-12-14T10:03:20Z")

</div>

> [@jprochaz](#):
>
> root-config --git-revision

I opened [[6.30] root-config --git-revision broken · Issue #14229 · root-project/root · GitHub](https://github.com/root-project/root/issues/14229)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 28, 2023, 10:03am UTC](https://root-forum.cern.ch/t/root-config-git-revision-does-not-work/57527/4 "2023-12-28T10:03:51Z")

</div>

Closed on December 28, 2023, 10:03am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
