hound-search/hound

Handle empty git repositories gracefully

Open

#228 geöffnet am 28. Nov. 2016

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (606 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (5.470 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I'm indexing several hundred repos, and a few of them are currently empty. This causes an error in hound's logs:

2016/11/28 18:08:09 Failed to git fetch /users/foo/hound/data/vcs-ce7a7ad7a7faafc79f1aaaf7df43a2f9da56539, see output below
fatal: Couldn't find remote ref master
Continuing...
2016/11/28 18:08:09 exit status 128

If I cd to the relevant directory:

$ git log
fatal: your current branch 'master' does not have any commits yet

Contributor Guide