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

Fails on pulling from empty repo #19

Open
domanchi opened this issue Mar 4, 2019 · 0 comments
Open

Fails on pulling from empty repo #19

domanchi opened this issue Mar 4, 2019 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@domanchi
Copy link
Contributor

domanchi commented Mar 4, 2019

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)

@domanchi domanchi added good first issue Good for newcomers bug Something isn't working labels Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant