Skip to content

Fails on pulling from empty repo #19

@domanchi

Description

@domanchi

If a repository is empty, detect-secrets-server will attempt to clone it, yet fail at pulling master.

~/.detect-secrets-server/repos/c13c25fda3384f857b42705cca3c7483b745b5fdb17819578346d4091d97d9803286fcd9495540bfa6e7ee1051cede1d72a25b72d9b4b7c790e9d5ce4697c82c
$ git --git-dir `pwd` --work-tree . pull
fatal: Couldn't find remote ref HEAD

We should handle this issue gracefully.

Offending Line:

git.pull_master(self._repo_location)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions