From 0d60b2f2c50b14e5d6aa9116ea1610df79fd2e91 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 5 Jun 2019 13:57:02 +0000 Subject: [PATCH 1/2] --- ..._longer_generates_default_description.mdwn | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 doc/bugs/annex_init_no_longer_generates_default_description.mdwn diff --git a/doc/bugs/annex_init_no_longer_generates_default_description.mdwn b/doc/bugs/annex_init_no_longer_generates_default_description.mdwn new file mode 100644 index 0000000000..814ae263f7 --- /dev/null +++ b/doc/bugs/annex_init_no_longer_generates_default_description.mdwn @@ -0,0 +1,96 @@ +### Please describe the problem. + +As of a14f6ce75 (fix repo description setting bugs, 2019-05-23), `git annex init` without a description sets the description to a blank string. AFAICT from the description of that change and from the corresponding [bug report][0], that isn't an intentional change. + +[0]: https://git-annex.branchable.com/bugs/git-annex-init_with_no_args_overwrites_existing_repo_description/ +### What steps will reproduce the problem? + +``` +cd $(mktemp -dt gx-XXXXXXX) +git init +git annex init +git annex info --json | jq +``` + +On the parent of a14f6ce75, this shows + +``` +Initialized empty Git repository in /tmp/gx-BLmU7TJ/.git/ +init ok +(recording state in git...) +{ + "local annex size": "0 bytes", + "size of annexed files in working tree": "0 bytes", + "command": "info", + "untrusted repositories": [], + "success": true, + "semitrusted repositories": [ + { + "here": false, + "uuid": "00000000-0000-0000-0000-000000000001", + "description": "web" + }, + { + "here": false, + "uuid": "00000000-0000-0000-0000-000000000002", + "description": "bittorrent" + }, + { + "here": true, + "uuid": "d1ef2ae8-9604-4c33-8c3c-181f81c4348f", + "description": "kyle@hylob:/tmp/gx-BLmU7TJ" + } + ], + "bloom filter size": "32 mebibytes (0% full)", + "repository mode": "indirect", + "backend usage": {}, + "transfers in progress": [], + "local annex keys": 0, + "available local disk space": "301.33 gigabytes (+1 megabyte reserved)", + "annexed files in working tree": 0, + "file": null, + "trusted repositories": [] +} +``` + +On a14f6ce75, this shows + +``` +Initialized empty Git repository in /tmp/gx-pK345zF/.git/ +init ok +{ + "local annex size": "0 bytes", + "size of annexed files in working tree": "0 bytes", + "command": "info", + "untrusted repositories": [], + "success": true, + "semitrusted repositories": [ + { + "here": false, + "uuid": "00000000-0000-0000-0000-000000000001", + "description": "web" + }, + { + "here": false, + "uuid": "00000000-0000-0000-0000-000000000002", + "description": "bittorrent" + }, + { + "here": true, + "uuid": "00b8da69-41a5-4de8-9a6a-9ed991289f81", + "description": "" + } + ], + "bloom filter size": "32 mebibytes (0% full)", + "repository mode": "indirect", + "backend usage": {}, + "transfers in progress": [], + "local annex keys": 0, + "available local disk space": "301.22 gigabytes (+1 megabyte reserved)", + "annexed files in working tree": 0, + "file": null, + "trusted repositories": [] +} +``` + +Note that the description for here is a blank string. From b390256bd144bbee991ca3dd627cbe2b5a1762c0 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 5 Jun 2019 15:18:30 +0000 Subject: [PATCH 2/2] Added a comment: uuid.log is also not created --- ...1_eb415152db43c02e4d474dade4a1faca._comment | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/bugs/annex_init_no_longer_generates_default_description/comment_1_eb415152db43c02e4d474dade4a1faca._comment diff --git a/doc/bugs/annex_init_no_longer_generates_default_description/comment_1_eb415152db43c02e4d474dade4a1faca._comment b/doc/bugs/annex_init_no_longer_generates_default_description/comment_1_eb415152db43c02e4d474dade4a1faca._comment new file mode 100644 index 0000000000..f99e0ee5bd --- /dev/null +++ b/doc/bugs/annex_init_no_longer_generates_default_description/comment_1_eb415152db43c02e4d474dade4a1faca._comment @@ -0,0 +1,18 @@ +[[!comment format=mdwn + username="kyle" + avatar="http://cdn.libravatar.org/avatar/7d6e85cde1422ad60607c87fa87c63f3" + subject="uuid.log is also not created" + date="2019-06-05T15:18:30Z" + content=""" +As of that same commit (a14f6ce75), running `git annex init` in a fresh repository no longer creates uuid.log: + +``` +% cd $(mktemp -dt gx-XXXXXXX) +% git init +Initialized empty Git repository in /tmp/gx-kpnGSjg/.git/ +% git annex init +init ok +% git ls-tree -r git-annex ;# no output +``` + +"""]]