<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/refs, branch cmn/https-cap-no-hardcode</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>branch: fix forced branch creation on HEAD of a bare repo</title>
<updated>2016-11-04T17:12:35+00:00</updated>
<author>
<name>John Fultz</name>
<email>jfultz@wolfram.com</email>
</author>
<published>2016-10-28T19:32:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f9793884a3fc895a17a2a70709d32cbc2214377b'/>
<id>f9793884a3fc895a17a2a70709d32cbc2214377b</id>
<content type='text'>
The code correctly detects that forced creation of a branch on a
nonbare repo should not be able to overwrite a branch which is
the HEAD reference.  But there's no reason to prevent this on
a bare repo, and in fact, git allows this.  I.e.,

   git branch -f master new_sha

works on a bare repo with HEAD set to master.  This change fixes
that problem, and updates tests so that, for this case, both the
bare and nonbare cases are checked for correct behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code correctly detects that forced creation of a branch on a
nonbare repo should not be able to overwrite a branch which is
the HEAD reference.  But there's no reason to prevent this on
a bare repo, and in fact, git allows this.  I.e.,

   git branch -f master new_sha

works on a bare repo with HEAD set to master.  This change fixes
that problem, and updates tests so that, for this case, both the
bare and nonbare cases are checked for correct behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow creating copies of `git_reference` objects.</title>
<updated>2016-04-22T17:34:17+00:00</updated>
<author>
<name>Arthur Schreiber</name>
<email>arthurschreiber@github.com</email>
</author>
<published>2016-04-22T17:34:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=908f24fd13085d06a99666a3b6b1c54f6d4392af'/>
<id>908f24fd13085d06a99666a3b6b1c54f6d4392af</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #3736 from libgit2/cmn/dwim-general-message</title>
<updated>2016-04-11T17:29:54+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-04-11T17:29:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=0e00eecf83d8811e08024da3becf5159bc9d6226'/>
<id>0e00eecf83d8811e08024da3becf5159bc9d6226</id>
<content type='text'>
refs: provide a more general error message for dwim</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
refs: provide a more general error message for dwim</pre>
</div>
</content>
</entry>
<entry>
<title>refs::create: strict object creation on by default</title>
<updated>2016-04-11T15:50:11+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-04-11T15:50:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=d22a8b95830f3cb3dbc6cfaec65dd1b5a5d1444a'/>
<id>d22a8b95830f3cb3dbc6cfaec65dd1b5a5d1444a</id>
<content type='text'>
When we turned strict object creation validation on by default, we
forgot to inform the refs::create tests of this.  They, in fact,
believed that strict object creation was off by default.  As a result,
their cleanup function went and turned strict object creation off for
the remaining tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When we turned strict object creation validation on by default, we
forgot to inform the refs::create tests of this.  They, in fact,
believed that strict object creation was off by default.  As a result,
their cleanup function went and turned strict object creation off for
the remaining tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: provide a more general error message for dwim</title>
<updated>2016-04-11T15:47:03+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-04-11T15:43:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=77965c685d0ca8d5dc65ba3aedb41cca5485ae04'/>
<id>77965c685d0ca8d5dc65ba3aedb41cca5485ae04</id>
<content type='text'>
If we cannot dwim the input, set the error message to be explicit about
that. Otherwise we leave the error for the last failed lookup, which
can be rather unexpected as it mentions a remote when the user thought
they were trying to look up a branch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we cannot dwim the input, set the error message to be explicit about
that. Otherwise we leave the error for the last failed lookup, which
can be rather unexpected as it mentions a remote when the user thought
they were trying to look up a branch.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: plug a leak</title>
<updated>2016-03-03T10:17:36+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-03-03T10:17:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=9b3fc895b724bbdd5a698c8e7dc9ae6551f0a83d'/>
<id>9b3fc895b724bbdd5a698c8e7dc9ae6551f0a83d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: honor strict object creation</title>
<updated>2016-02-28T23:54:39+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-02-28T20:11:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=98c341496f276aa93737fd6ac71a23b77249d82d'/>
<id>98c341496f276aa93737fd6ac71a23b77249d82d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>reflog: error when a directory is at reflog path</title>
<updated>2015-11-12T14:39:29+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-11-03T22:34:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=0a700ee368818da526981b09c1c5bbef8c9b5fb8'/>
<id>0a700ee368818da526981b09c1c5bbef8c9b5fb8</id>
<content type='text'>
When a non-empty directory exists and prevents the creation of a
reflog, provide a more informative error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a non-empty directory exists and prevents the creation of a
reflog, provide a more informative error message.
</pre>
</div>
</content>
</entry>
<entry>
<title>refs: complain when a directory exists at ref</title>
<updated>2015-11-12T14:35:51+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-11-03T22:18:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=b46c7ee5e270cc29e2fc0420a55e347a3242b3b5'/>
<id>b46c7ee5e270cc29e2fc0420a55e347a3242b3b5</id>
<content type='text'>
When a (non-empty) directory exists at the reference target
location, complain with a more actionable error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a (non-empty) directory exists at the reference target
location, complain with a more actionable error message.
</pre>
</div>
</content>
</entry>
<entry>
<title>reflog: test reflog is deleted when ref is deleted</title>
<updated>2015-11-03T19:48:31+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-11-03T19:48:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=2d556f31665e9fde0310f4ae89cd3f01a5810b1c'/>
<id>2d556f31665e9fde0310f4ae89cd3f01a5810b1c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
