diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-14 14:30:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-14 14:30:15 -0700 |
commit | 262cffe6c9516bc5070e4ee36336a171c425b516 (patch) | |
tree | a9338c7db9e3c019cc0e636198769c56a8a3d850 /t | |
parent | git-multimail: update to release 1.2.0 (diff) | |
parent | notes: correct documentation of DWIMery for notes references (diff) | |
download | tgif-262cffe6c9516bc5070e4ee36336a171c425b516.tar.xz |
Merge branch 'jk/notes-dwim-doc'
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-x | t/t3301-notes.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh index 8cffd35fb0..cd70274ea5 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 && |