summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-16 21:32:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-16 21:32:40 (GMT)
commitf4892a3c2883bd517edf370c747afde29a0c2b3c (patch)
tree5facb20808a432e317eea781abc2bcd91fd9de31 /t
parent47c566a4d670e892ffa42fe307c45f41fc5a6ac5 (diff)
parente14c92e841fd6d99c8c17af05a411a85ac212254 (diff)
downloadgit-f4892a3c2883bd517edf370c747afde29a0c2b3c.zip
git-f4892a3c2883bd517edf370c747afde29a0c2b3c.tar.gz
git-f4892a3c2883bd517edf370c747afde29a0c2b3c.tar.bz2
Merge branch 'jk/notes-dwim-doc' into maint
The way how --ref/--notes to specify the notes tree reference are DWIMmed was not clearly documented. * jk/notes-dwim-doc: notes: correct documentation of DWIMery for notes references
Diffstat (limited to 't')
-rwxr-xr-xt/t3301-notes.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh
index 8cffd35..cd70274 100755
--- a/t/t3301-notes.sh
+++ b/t/t3301-notes.sh
@@ -1122,6 +1122,12 @@ test_expect_success 'git notes copy diagnoses too many or too few parameters' '
test_must_fail git notes copy one two three
'
+test_expect_success 'git notes get-ref expands refs/heads/master to refs/notes/refs/heads/master' '
+ test_unconfig core.notesRef &&
+ sane_unset GIT_NOTES_REF &&
+ test "$(git notes --ref=refs/heads/master get-ref)" = "refs/notes/refs/heads/master"
+'
+
test_expect_success 'git notes get-ref (no overrides)' '
test_unconfig core.notesRef &&
sane_unset GIT_NOTES_REF &&