detect-secrets-server icon indicating copy to clipboard operation
detect-secrets-server copied to clipboard

Fails on pulling from empty repo

Open domanchi opened this issue 5 years ago • 0 comments

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: https://github.com/Yelp/detect-secrets-server/blob/db0c9e93d531ed6a9b64de4423965f1c2d15aa83/detect_secrets_server/storage/base.py#L83

domanchi avatar Mar 04 '19 14:03 domanchi