Skip to content

fatal: Not a valid object name master #102

@medamin25

Description

@medamin25

hi, iget this error while running git fame perhaps my branch is main .
a workaround that is to use --branch arg like git fame --branch main .

  • I think it 's better to detect the active git branch by default.

running:

$ sh -xc "uname -a ; git fame --version ; git fame " |& sed -ure 's/^(\+\s+)/\n\1/;$s/$/\n/'

output:


+ uname -a
Linux f6c2c582ccf8 5.15.0-1016-gcp #21~20.04.1-Ubuntu SMP Fri Aug 5 12:53:07 UTC 2022 x86_64 GNU/Linux

+ git fame --version
git-fame 2.5.2 (c) 2012-2022 Linus Oleander

+ git fame
Error: Could not run 'git --git-dir='/home/runner/leafserver/.git' --work-tree='/home/runner/leafserver' ls-tree -r master --name-only' => fatal: Not a valid object name master.
Try --help for help.

workaround

$ git fame --branch main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions