Skip to content

Modules without a remote master branch trigger "[2020-12-31 14:43:37.337] [ERROR] fatal: your current branch 'master' does not have any commits yet" #2391

Description

@0m4r

I found a bug in MagicMirror

Any module without a "master" branch will give the fatal error
[ERROR] fatal: your current branch 'master' does not have any commits yet

Platform:
Raspberrypi 3b+

Node Version:
v10.23.0

MagicMirror Version:
2.13.0

Description:
Any module without a "master" branch will give the fatal error
[ERROR] fatal: your current branch 'master' does not have any commits yet

Steps to Reproduce:

  • Install a module without the master branch (i.e. mine: https://github.com/0m4r/MMM-covid19, it has a "main" branch as per the default github config for new repositories)
  • start magic mirror
  • check the server logs

Expected Results:
No fatal error is shown. Main is used as a reference branch

Actual Results:
A fatal error is shown

Configuration:
Not relevant

Additional Notes:
All seems to work well even with this error, and I know I could rename my main branch to master, but I think it should not be the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions