Skip to content

Commit

Permalink
Only try to display the current branch name if we have one.
Browse files Browse the repository at this point in the history
  • Loading branch information
henricj committed Mar 29, 2022
1 parent e655530 commit e7235ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,11 @@ void log_build_info() {
#endif

#if defined(DUNE_GIT_DESCRIBE)
#if defined(DUNE_GIT_REPO_BRANCH)
sdl2::log_info(" git " DUNE_GIT_REPO_BRANCH "/" DUNE_GIT_DESCRIBE " " DUNE_GIT_TIME);
#else
sdl2::log_info(" git " DUNE_GIT_DESCRIBE " " DUNE_GIT_TIME);
#endif
sdl2::log_info(" git " DUNE_GIT_REPO_URL);
#endif

Expand Down

0 comments on commit e7235ad

Please sign in to comment.