Bug in git branch --show-current

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

 



Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
This is part of a Jenkins job, so for some reason we are working on a detached head

What did you expect to happen? (Expected behavior)
I need to find out▒which branch the script is working on,
so I used "git branch --show-current" to get this info.

What happened instead? (Actual behavior)
The command returns absolutely nothing.

What's different between what you expected and what actually happened?
Well, everything!

Anything else you want to add:
I tried some other git commands that usually also show information
about the current branch, but *none* of them work or even show a fatal error.


[System Info]
git version:
git version 2.39.5
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.1.0-34-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.135-1 (2025-04-25) x86_64
compiler info: gnuc: 12.2
libc info: glibc: 2.36
$SHELL (typically, interactive shell): /bin/zsh


[Enabled Hooks]

Ulrich Wittenberg
Senior Software Developer | KISTERS Oldenburg
Germany

ulrich.wittenberg@xxxxxxxxxx
www.kisters.de



________________________________
Ulrich Wittenberg - Energy - KISTERS AG - Haselriege 13 - 26125 Oldenburg - DE | +49 441 93602 -156 | ulrich.wittenberg@xxxxxxxxxx | www.kisters.de | Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | Aufsichtsratsvorsitzender: Dr. Thomas Klevers
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux