diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2005-11-14 23:10:59 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-14 17:15:32 -0800 |
commit | 08db81a9f1e4072790f0257f5398e8408e3d6816 (patch) | |
tree | 918b707153ab79e498576de81fb9b89bc07ac7ac /t | |
parent | 7acab8f16785151f9b6d9bbd8a9b0a8b76b26fba (diff) | |
download | git-08db81a9f1e4072790f0257f5398e8408e3d6816.tar.gz git-08db81a9f1e4072790f0257f5398e8408e3d6816.tar.xz |
allow git-update-ref create refs with slashes in names
Make git-update-ref create references with slashes in them. git-branch
and git-checkout already support such reference names.
git-branch can use git-update-ref to create the references in a more
formal manner now.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-x | t/t3200-branch.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index 5f98f64de..36f7749be 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -24,4 +24,12 @@ test_expect_failure \ 'git branch --help should not have created a bogus branch' \ 'test -f .git/refs/heads/--help' +test_expect_success \ + 'git branch abc should create a branch' \ + 'git-branch abc && test -f .git/refs/heads/abc' + +test_expect_success \ + 'git branch a/b/c should create a branch' \ + 'git-branch a/b/c && test -f .git/refs/heads/a/b/c' + test_done |