Carlos Martín Nieto
e128a1af6e
clone: correct handling of an unborn HEAD
...
If the remote does not advertise HEAD, then it is unborn and we cannot
checkout that branch. Handle it the same way as an empty repo.
2014-09-02 13:10:19 +02:00
Carlos Martín Nieto
f2ffab618a
remote: add tests for remote-branch edge cases
...
Add tests for the case when there are no branches on the remote and when
HEAD is detached but has the id of a non-branch. In both of these cases,
we should return ENOTFOUND.
2014-09-02 12:47:12 +02:00
Carlos Martín Nieto
94412b009e
remote: assert what we want to happen when ther is no default branch
...
Assert what we already do, so as to notice changes.
2014-08-29 15:28:10 +02:00
Carlos Martín Nieto
d22db24fb7
remote: add api to guess the remote's default branch
...
If the remote supports the symref protocol extension, then we return
that, otherwise we guess with git's rules.
2014-05-21 12:12:32 +02:00