Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty repo causes crash #50

Closed
kitplummer opened this issue Apr 12, 2020 · 0 comments
Closed

Empty repo causes crash #50

kitplummer opened this issue Apr 12, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kitplummer
Copy link
Collaborator

➜  ~ cd Code; git clone https://github.com/amorphid/artifactory-elixir
Cloning into 'artifactory-elixir'...
warning: You appear to have cloned an empty repository.
➜  Code cd artifactory-elixir
➜  artifactory-elixir git:(master) git log
fatal: your current branch 'master' does not have any commits yet
➜  lowendinsight-hex git:(hex_pm_api) ✗ mix lei.analyze https://github.com/amorphid/artifactory-elixir

10:54:14.584 [error] Task #PID<0.92.0> started from #PID<0.225.0> terminating
** (Git.Error) fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

    lib/git.ex:128: Git.result_or_fail/1
    lib/git_module.ex:52: GitModule.get_contributor_count/1
    lib/analyzer_module.ex:50: AnalyzerModule.analyze/2
    (elixir 1.10.2) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.10.2) lib/task/supervised.ex:35: Task.Supervised.reply/5
    (stdlib 3.11.2) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &AnalyzerModule.analyze/2
    Args: ["https://github.com/amorphid/artifactory-elixir", "mix task"]
** (EXIT from #PID<0.92.0>) an exception was raised:
    ** (Git.Error) fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

        lib/git.ex:128: Git.result_or_fail/1
        lib/git_module.ex:52: GitModule.get_contributor_count/1
        lib/analyzer_module.ex:50: AnalyzerModule.analyze/2
        (elixir 1.10.2) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
        (elixir 1.10.2) lib/task/supervised.ex:35: Task.Supervised.reply/5
        (stdlib 3.11.2) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant