Skip to content
Snippets Groups Projects
user avatar
Georges Racinet authored
It turns out that Gitaly returns an empty response on an empty
repository, whatever the value stored as default branch might be.
In case the default branch points to a branch that does not exist,
it returns the first branch it can find. This latter case cannot
happen with the state maintainer provided by py-heptapod.

This can be important for various mechanisms to actually set the
default branch. We're simply returning an empty response if the
default branch is set but its target does not exist. This amounts
to the same in all current scenarios. Later on we could return the
first GitLab branch if that becomes useful.
41582380
History
Name Last commit Last update
..
generated
gitlab
service
config.rs
git.rs
lib.rs
main.rs
mercurial.rs
message.rs
metadata.rs
oid.rs
repository.rs
streaming.rs
util.rs