summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar http://id.clacke.se/ <Claes@web>2015-03-22 15:55:52 +0000
committerGravatar admin <admin@branchable.com>2015-03-22 15:55:52 +0000
commitde394c0924264ae036f9d3b8bfdd2d8427ea43fd (patch)
tree64730537b0163e30456b2098f37d2ef4dd930d6c /doc
parent6991fa586c1458627351bc51f8f2045dc7b0a77c (diff)
initial description
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/Using_date_matching_options_gives_scary_error_messaes_on_empty_reflog.mdwn33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/bugs/Using_date_matching_options_gives_scary_error_messaes_on_empty_reflog.mdwn b/doc/bugs/Using_date_matching_options_gives_scary_error_messaes_on_empty_reflog.mdwn
new file mode 100644
index 000000000..487849f78
--- /dev/null
+++ b/doc/bugs/Using_date_matching_options_gives_scary_error_messaes_on_empty_reflog.mdwn
@@ -0,0 +1,33 @@
+### Please describe the problem.
+
+When the reflog is empty, time-based `--in` expressions give scary messages that makes it look like something is really broken.
+
+Instead of `Fatal: Log blabla is empty` and `Broken pipe` a reasonable message would be e.g. `warning: Log for 'refs/heads/git-annex' is empty.`
+
+### What steps will reproduce the problem?
+
+Emptying reflog for `refs/heads/git-annex`, then using an `--in=here{date}` option to e.g. `git annex fsck`.
+
+### What version of git-annex are you using? On what operating system?
+
+`git-annex version: 5.20140412ubuntu1` on Ubuntu Trusty.
+
+### Please provide any additional information below.
+
+[[!format sh """
+# If you can, paste a complete transcript of the problem occurring here.
+# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
+
+$ git reflog expire --expire=all refs/heads/git-annex
+$ git annex find --not --in here@{yesterday}
+fatal: Log /home/clacke/pics/.git/logs/refs/heads/git-annex is empty.
+fatal: Log /home/clacke/pics/.git/logs/refs/heads/git-annex is empty.
+[ . . . ]
+^C
+git-annex: fd:10: hGetLine: end of file
+git-annex: fd:9: hFlush: resource vanished (Broken pipe)
+git-annex: fd:9: hFlush: resource vanished (Broken pipe)
+[ . . . ]
+
+# End of transcript or log.
+"""]]