Skip to content
Snippets Groups Projects
Commit caa6e979 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Output the Git repo/branch/hash details in execution banner

Not sent in connection banner.
parent 16c5298f
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
/* sbbs */ /* sbbs */
#include "telnet.h" #include "telnet.h"
#include "git_branch.h"
#include "git_hash.h"
/* constants */ /* constants */
#define NAME "SEXPOTS" #define NAME "SEXPOTS"
...@@ -1734,7 +1736,8 @@ int main(int argc, char** argv) ...@@ -1734,7 +1736,8 @@ int main(int argc, char** argv)
,&__DATE__[7] ,&__DATE__[7]
); );
fprintf(stdout,"%s\n\n", banner); fprintf(stdout,"%s\n", banner);
fprintf(stdout,"https://gitlab.synchro.net - %s/%s %s\n\n", GIT_BRANCH, GIT_HASH, GIT_DATE);
/**********************/ /**********************/
/* Parse command-line */ /* Parse command-line */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment