aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2015-09-05 18:08:21 +0200
committerJonas Bernoulli <jonas@bernoul.li>2015-09-06 13:55:24 +0200
commitc35f21dc572d4ffe847d0203c3c986d6760eef2e (patch)
tree722d515e4c5a7b502d4c5f3743a8a24e2821cfdb /t
parent2819e1f3b0b0df8e65efe107b56a7fe1bfa72f72 (diff)
magit-toplevel: add doc-string
Also add entry to release notes and a comment in the tests.
Diffstat (limited to 't')
-rw-r--r--t/magit-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/magit-tests.el b/t/magit-tests.el
index 923e8bf..8e756a2 100644
--- a/t/magit-tests.el
+++ b/t/magit-tests.el
@@ -53,6 +53,11 @@
(should (equal (magit-toplevel "repo-link/.git/")
(expand-file-name "repo-link/")))
(should (equal (magit-toplevel "repo-link/.git/objects/")
+ ;; We could theoretically return "repo-link/"
+ ;; here by going up until `--git-dir' gives us
+ ;; "." . But that would be a bit risky and Magit
+ ;; never goes there anyway, so it's not worth it.
+ ;; But in the doc-string we say we cannot do it.
(expand-file-name "repo/"))))))
(ert-deftest magit-toplevel:tramp ()