Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0e58e4

Browse files
committed
test-rename: This is not a decimal, silly
1 parent 5b4a708 commit c0e58e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests-clar/diff/rename.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,10 @@ static void write_similarity_file_two(const char *filename, size_t b_lines)
968968
size_t i;
969969

970970
for (i = 0; i < b_lines; i++)
971-
git_buf_printf(&contents, "%0.2d - bbbbb\r\n", (int)(i+1));
971+
git_buf_printf(&contents, "%02d - bbbbb\r\n", (int)(i+1));
972972

973973
for (i = b_lines; i < 50; i++)
974-
git_buf_printf(&contents, "%0.2d - aaaaa%s", (int)(i+1), (i == 49 ? "" : "\r\n"));
974+
git_buf_printf(&contents, "%02d - aaaaa%s", (int)(i+1), (i == 49 ? "" : "\r\n"));
975975

976976
cl_git_pass(
977977
git_futils_writebuffer(&contents, filename, O_RDWR|O_CREAT, 0777));

0 commit comments

Comments
 (0)