mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.

Home Page:https://mailinabox.email/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal: No names found, cannot describe anything.

binarykitchen opened this issue · comments

When running MIAB on a fork, the git describe command under setup/bootstrap.sh produces this error every day and it also gets sent by email every day to the administrator:

fatal: No names found, cannot describe anything.

To silence this and to cope with forks properly, recommend amending the --always option. Like that:

michael-heuberger@abc.com /home/michael-heuberger/mailinabox-v25 ❯❯❯ git describe --always
848392c

If you agree, I'll do a tiny PR for that.

Are you sure it's not the invocation at

tag = shell("check_output", ["/usr/bin/git", "describe", "--abbrev=0"], env={"GIT_DIR": os.path.join(miab_dir, '.git')}).strip()

?

Adding --always there makes sense. As would normal Python error handling (or both).

Yeah @JoshData, that file too. Ok, I will create a PR to amend --always for all git describe commands we have in our code base.

Done, PR is here. See link above.