src-d / gitbase

SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase
Apache License 2.0
2.07k stars 123 forks source link

cli: detect bareness of git libraries #897

Closed jfontan closed 5 years ago

jfontan commented 5 years ago

Now by default the type of git repositories (bare or non bare) is chosen automatically using the first repository found in the directory. To force an specific format --bare and --non-bare can be used. Also the URL format now has 3 possible values for bare option: true, false and auto.

$ gitbase server --non-bare -d //dir/1
$ gitbase server -d 'file:///dir/1?bare=auto' -d 'file:///dir/1?bare=true'
jfontan commented 5 years ago

I've rebased with latest master