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

Update default-config.json #391

Merged
merged 2 commits into from
Jun 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion default-config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"dbpath" : "db",
"vcs-config" : {
"git": {
"ref" : "main"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you find that this was necessary to get this config to work? Hound should auto-detect the default ref, so this shouldn't need to be configured.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I get without configuring "ref" : "main":

> go run cmds/houndd/main.go -conf default-config.json
2021/04/01 16:14:07 Searcher started for Hound
2021/04/01 16:14:07 Failed to git fetch /Users/simon/src/hound/db/vcs-1cd1336846e252ae5b4dee00525320b914f740df, see output below
fatal: couldn't find remote ref master
Continuing...
2021/04/01 16:14:07 Failed to git reset /Users/simon/src/hound/db/vcs-1cd1336846e252ae5b4dee00525320b914f740df, see output below
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Continuing...
2021/04/01 16:14:08 All indexes built!
2021/04/01 16:14:08 running server at http://localhost:6080

}
},
"repos" : {
"Hound" : {
"url" : "https://github.com/etsy/hound.git"
"url" : "https://github.com/hound-search/hound.git"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this!

}
}
}