diff options
author | Sascha Cunz <Sascha@BabbelBox.org> | 2013-01-06 14:30:52 +0100 |
---|---|---|
committer | Sascha Cunz <Sascha@BabbelBox.org> | 2013-01-06 14:30:52 +0100 |
commit | 2ba6f3c7f133e8f37450e6c56a0d798f82536ff6 (patch) | |
tree | 3fe430ebb1406778fd6f35c07af29d52b449e2c0 /tests-clar/diff/patch.c | |
parent | f9b4adbe54de57431d56e0877325383d489e5196 (diff) | |
download | libgit2-2ba6f3c7f133e8f37450e6c56a0d798f82536ff6.tar.gz |
Allow to clone repositories that don't have a `master` branch
Before this, we error out from `reference_matches_remote_head` if the
reference we're searching for does not exist.
Since we explicitly check if master is existing in `update_head_to_remote`
and error out if it doesn't, a repository without master branch could
not be cloned.
In fact this was later clobbered by what is fixed in #1194.
However, this patch introduces a `found` member in `head_info` and sets
it accordingly. That also saves us from checking the string length of
`branchname` a few times.
Diffstat (limited to 'tests-clar/diff/patch.c')
0 files changed, 0 insertions, 0 deletions