@@ -49,9 +49,9 @@ test_expect_success 'git branch HEAD should fail' '
49
49
cat > expect << EOF
50
50
$ZERO_OID $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL > 1117150200 +0000 branch: Created from master
51
51
EOF
52
- test_expect_success ' git branch -l d/e/f should create a branch and a log' '
52
+ test_expect_success ' git branch --create-reflog d/e/f should create a branch and a log' '
53
53
GIT_COMMITTER_DATE="2005-05-26 23:30" \
54
- git branch -l d/e/f &&
54
+ git -c core.logallrefupdates=false branch --create-reflog d/e/f &&
55
55
test_path_is_file .git/refs/heads/d/e/f &&
56
56
test_path_is_file .git/logs/refs/heads/d/e/f &&
57
57
test_cmp expect .git/logs/refs/heads/d/e/f
@@ -82,21 +82,21 @@ test_expect_success 'git branch -m dumps usage' '
82
82
83
83
test_expect_success ' git branch -m m broken_symref should work' '
84
84
test_when_finished "git branch -D broken_symref" &&
85
- git branch -l m &&
85
+ git branch --create-reflog m &&
86
86
git symbolic-ref refs/heads/broken_symref refs/heads/i_am_broken &&
87
87
git branch -m m broken_symref &&
88
88
git reflog exists refs/heads/broken_symref &&
89
89
test_must_fail git reflog exists refs/heads/i_am_broken
90
90
'
91
91
92
92
test_expect_success ' git branch -m m m/m should work' '
93
- git branch -l m &&
93
+ git branch --create-reflog m &&
94
94
git branch -m m m/m &&
95
95
git reflog exists refs/heads/m/m
96
96
'
97
97
98
98
test_expect_success ' git branch -m n/n n should work' '
99
- git branch -l n/n &&
99
+ git branch --create-reflog n/n &&
100
100
git branch -m n/n n &&
101
101
git reflog exists refs/heads/n
102
102
'
@@ -378,9 +378,9 @@ mv .git/config-saved .git/config
378
378
git config branch.s/s.dummy Hello
379
379
380
380
test_expect_success ' git branch -m s/s s should work when s/t is deleted' '
381
- git branch -l s/s &&
381
+ git branch --create-reflog s/s &&
382
382
git reflog exists refs/heads/s/s &&
383
- git branch -l s/t &&
383
+ git branch --create-reflog s/t &&
384
384
git reflog exists refs/heads/s/t &&
385
385
git branch -d s/t &&
386
386
git branch -m s/s s &&
@@ -444,7 +444,7 @@ test_expect_success 'git branch --copy dumps usage' '
444
444
'
445
445
446
446
test_expect_success ' git branch -c d e should work' '
447
- git branch -l d &&
447
+ git branch --create-reflog d &&
448
448
git reflog exists refs/heads/d &&
449
449
git config branch.d.dummy Hello &&
450
450
git branch -c d e &&
@@ -459,7 +459,7 @@ test_expect_success 'git branch -c d e should work' '
459
459
'
460
460
461
461
test_expect_success ' git branch --copy is a synonym for -c' '
462
- git branch -l copy &&
462
+ git branch --create-reflog copy &&
463
463
git reflog exists refs/heads/copy &&
464
464
git config branch.copy.dummy Hello &&
465
465
git branch --copy copy copy-to &&
@@ -486,7 +486,7 @@ test_expect_success 'git branch -c ee ef should copy ee to create branch ef' '
486
486
'
487
487
488
488
test_expect_success ' git branch -c f/f g/g should work' '
489
- git branch -l f/f &&
489
+ git branch --create-reflog f/f &&
490
490
git reflog exists refs/heads/f/f &&
491
491
git config branch.f/f.dummy Hello &&
492
492
git branch -c f/f g/g &&
@@ -497,7 +497,7 @@ test_expect_success 'git branch -c f/f g/g should work' '
497
497
'
498
498
499
499
test_expect_success ' git branch -c m2 m2 should work' '
500
- git branch -l m2 &&
500
+ git branch --create-reflog m2 &&
501
501
git reflog exists refs/heads/m2 &&
502
502
git config branch.m2.dummy Hello &&
503
503
git branch -c m2 m2 &&
@@ -506,18 +506,18 @@ test_expect_success 'git branch -c m2 m2 should work' '
506
506
'
507
507
508
508
test_expect_success ' git branch -c zz zz/zz should fail' '
509
- git branch -l zz &&
509
+ git branch --create-reflog zz &&
510
510
git reflog exists refs/heads/zz &&
511
511
test_must_fail git branch -c zz zz/zz
512
512
'
513
513
514
514
test_expect_success ' git branch -c b/b b should fail' '
515
- git branch -l b/b &&
515
+ git branch --create-reflog b/b &&
516
516
test_must_fail git branch -c b/b b
517
517
'
518
518
519
519
test_expect_success ' git branch -C o/q o/p should work when o/p exists' '
520
- git branch -l o/q &&
520
+ git branch --create-reflog o/q &&
521
521
git reflog exists refs/heads/o/q &&
522
522
git reflog exists refs/heads/o/p &&
523
523
git branch -C o/q o/p
@@ -570,10 +570,10 @@ test_expect_success 'git branch -C master5 master5 should work when master is ch
570
570
'
571
571
572
572
test_expect_success ' git branch -C ab cd should overwrite existing config for cd' '
573
- git branch -l cd &&
573
+ git branch --create-reflog cd &&
574
574
git reflog exists refs/heads/cd &&
575
575
git config branch.cd.dummy CD &&
576
- git branch -l ab &&
576
+ git branch --create-reflog ab &&
577
577
git reflog exists refs/heads/ab &&
578
578
git config branch.ab.dummy AB &&
579
579
git branch -C ab cd &&
@@ -685,7 +685,7 @@ test_expect_success 'renaming a symref is not allowed' '
685
685
'
686
686
687
687
test_expect_success SYMLINKS ' git branch -m u v should fail when the reflog for u is a symlink' '
688
- git branch -l u &&
688
+ git branch --create-reflog u &&
689
689
mv .git/logs/refs/heads/u real-u &&
690
690
ln -s real-u .git/logs/refs/heads/u &&
691
691
test_must_fail git branch -m u v
0 commit comments