<feed xmlns='http://www.w3.org/2005/Atom'>
<title>reflectub, branch make-errors-more-traceable</title>
<subtitle>Mirror a user’s GitHub repositories</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/'/>
<entry>
<title>github::Repo: Change `git_url` to `clone_url`</title>
<updated>2022-06-04T12:10:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-04T03:25:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=af1c2811362a603f8878d75590eda3e439665786'/>
<id>af1c2811362a603f8878d75590eda3e439665786</id>
<content type='text'>
I was getting errors mirroring and updating:

    failed to connect to github.com: Connection timed out; class=Os (2)

and

    remote 'origin' already exists; class=Config (7); code=Exists(-4)

It turns out that the `git_url` field, which I had been using previously
to mirror and clone repositories, was changed from an "https://" URL to
a "git://" URL. Since Reflectub is not authorised to clone any GitHub
"git://" URLs, the connection timed out.

The URL change seems to have happened around March 2022, or at least
between December 2021 and April 2022.

The second error was caused by a previously-created repository existing
in the filesystem, but not being in the database as it hadn't been
correctly mirrored. For now, I've decided not to fix that problem and am
only fixing the URL issue.

The GitHub API also includes a `clone_url` field, which contains the
HTTPS clone URL. This fixes the timeout problem.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I was getting errors mirroring and updating:

    failed to connect to github.com: Connection timed out; class=Os (2)

and

    remote 'origin' already exists; class=Config (7); code=Exists(-4)

It turns out that the `git_url` field, which I had been using previously
to mirror and clone repositories, was changed from an "https://" URL to
a "git://" URL. Since Reflectub is not authorised to clone any GitHub
"git://" URLs, the connection timed out.

The URL change seems to have happened around March 2022, or at least
between December 2021 and April 2022.

The second error was caused by a previously-created repository existing
in the filesystem, but not being in the database as it hadn't been
correctly mirrored. For now, I've decided not to fix that problem and am
only fixing the URL issue.

The GitHub API also includes a `clone_url` field, which contains the
HTTPS clone URL. This fixes the timeout problem.
</pre>
</div>
</content>
</entry>
<entry>
<title>git.rs: Add more context to errors</title>
<updated>2022-06-02T22:50:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-02T22:50:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=b8a188e19e7ec0ae381c18a5a4db86fb576bf95a'/>
<id>b8a188e19e7ec0ae381c18a5a4db86fb576bf95a</id>
<content type='text'>
Add full definitions for our new error variant ideas.

Use a distinct variant and message in each error case in order to trace
errors to the line of code where they occur.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add full definitions for our new error variant ideas.

Use a distinct variant and message in each error case in order to trace
errors to the line of code where they occur.
</pre>
</div>
</content>
</entry>
<entry>
<title>Cargo.toml: Update 'thiserror' to v1.0.31</title>
<updated>2022-06-02T22:49:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-02T22:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=f2234472fd415f457fca24bc8760f38e54f4f97d'/>
<id>f2234472fd415f457fca24bc8760f38e54f4f97d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Cargo.lock</title>
<updated>2022-06-02T22:45:49+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-02T22:45:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=d7cd942c35e2561d807518dd988a200249a45501'/>
<id>d7cd942c35e2561d807518dd988a200249a45501</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git.rs: Ideas for error structure and context</title>
<updated>2022-06-02T21:22:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-02T21:22:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=0951bb614aa1602983dacbf604c5a52e44d49bc3'/>
<id>0951bb614aa1602983dacbf604c5a52e44d49bc3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git.rs: Add `Error::MirrorAddRemote` variant</title>
<updated>2022-06-02T19:33:20+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-02T19:33:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=079ca8b33657da216a8d08a9fae0fd54e488ec71'/>
<id>079ca8b33657da216a8d08a9fae0fd54e488ec71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git.rs: Add ideas for new error variants</title>
<updated>2022-06-02T19:27:33+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-06-02T19:27:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=bde733890aeea0a1bbbdcbc1ad14fe05ed58661a'/>
<id>bde733890aeea0a1bbbdcbc1ad14fe05ed58661a</id>
<content type='text'>
These variants should make it easier to trace where in the code that a
particular error occurred, and include a context-descriptive error
message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These variants should make it easier to trace where in the code that a
particular error occurred, and include a context-descriptive error
message.
</pre>
</div>
</content>
</entry>
<entry>
<title>Increase version v0.0.1 -&gt; v0.0.2</title>
<updated>2021-06-25T22:39:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-06-25T22:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=627d6c7e2b0e218213fa2a9c19036489c66c3141'/>
<id>627d6c7e2b0e218213fa2a9c19036489c66c3141</id>
<content type='text'>
And add a change log.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And add a change log.
</pre>
</div>
</content>
</entry>
<entry>
<title>set_agefile_time(): Don't add `agefile=info/web/last-modified` to cgitrc</title>
<updated>2021-06-25T17:55:50+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-06-25T17:55:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=82966ee8d37f64b4d0b148507a775e8d25116548'/>
<id>82966ee8d37f64b4d0b148507a775e8d25116548</id>
<content type='text'>
We don't need to set the `agefile` config value because
"info/web/last-modified" is already CGit's default value for the
setting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We don't need to set the `agefile` config value because
"info/web/last-modified" is already CGit's default value for the
setting.
</pre>
</div>
</content>
</entry>
<entry>
<title>README: Reword description about CGit</title>
<updated>2021-06-25T17:48:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-06-25T17:48:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/reflectub/commit/?id=3a595fddc90837a51f866cf3d2c7d60d543b2399'/>
<id>3a595fddc90837a51f866cf3d2c7d60d543b2399</id>
<content type='text'>
Reflectub is designed to work specifically with CGit, but could work
with other Git web frontends. Make this more explicit in the
description.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reflectub is designed to work specifically with CGit, but could work
with other Git web frontends. Make this more explicit in the
description.
</pre>
</div>
</content>
</entry>
</feed>
