summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-03-02 03:23:06 -0500
committerJunio C Hamano <gitster@pobox.com>2017-03-02 11:05:04 -0800
commita356e8e2a724012c8120bfa69133b6118b1565f4 (patch)
tree7d0941a3f7b3c147a7415fe63f6ced65fc96570b /builtin
parent0e9f62dab9fcce57279751bba47718d3f8baf3c8 (diff)
downloadgit-a356e8e2a724012c8120bfa69133b6118b1565f4.tar.gz
t3204: test git-branch @-expansion corner cases
git-branch feeds the branch names from the command line to strbuf_branchname(), but we do not yet tell that function which kinds of expansions should be allowed. Let's create a set of tests that cover both the allowed and disallowed cases. That shows off some breakages where we currently create or delete the wrong ref (and will make sure that we do not break any cases that _should_ be working when we do add more restrictions). Note that we check branch creation and deletion, but do not bother with renames. Those follow the same code path as creation. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions