mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed issue with git revision under Windows
This commit is contained in:
parent
9160f7478e
commit
368de75ec9
@ -7244,8 +7244,8 @@ void set_cookie(LOGBOOK * lbs, char *name, char *value, BOOL global, char *expir
|
|||||||
const char *git_revision()
|
const char *git_revision()
|
||||||
{
|
{
|
||||||
const char *p = _git_revision;
|
const char *p = _git_revision;
|
||||||
if (strchr(p, '-'))
|
if (strrchr(p, '-'))
|
||||||
p = strchr(p, '-')+2;
|
p = strrchr(p, '-')+2;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user