File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ test_expect_success 'describe --contains defaults to HEAD without commit-ish' '
107
107
check_describe tags/A --all A^0
108
108
109
109
test_expect_success ' renaming tag A to Q locally produces a warning' "
110
- mv .git/refs/tags/A .git/refs/tags/Q &&
110
+ git update-ref refs/tags/Q $( git rev-parse refs/tags/A) &&
111
+ git update-ref -d refs/tags/A &&
111
112
git describe HEAD 2>err >out &&
112
113
cat >expected <<-\EOF &&
113
114
warning: tag 'Q' is externally known as 'A'
@@ -135,7 +136,8 @@ test_expect_success 'abbrev=0 will not break misplaced tag (2)' '
135
136
'
136
137
137
138
test_expect_success ' rename tag Q back to A' '
138
- mv .git/refs/tags/Q .git/refs/tags/A
139
+ git update-ref refs/tags/A $(git rev-parse refs/tags/Q) &&
140
+ git update-ref -d refs/tags/Q
139
141
'
140
142
141
143
test_expect_success ' pack tag refs' ' git pack-refs'
You can’t perform that action at this time.
0 commit comments