Skip to content

Commit 51df666

Browse files
committed
Improve unpack trees error text
Signed-off-by: naiduv <naiduvenkat@gmail.com>
1 parent da72936 commit 51df666

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

t/t7110-reset-merge.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ test_expect_success 'reset --merge fails with changes in file it touches' '
173173
sed -e "s/line 1/changed line 1/" <file1 >file3 &&
174174
mv file3 file1 &&
175175
test_must_fail git reset --merge HEAD^ 2>err.log &&
176-
grep file1 err.log | grep "not uptodate"
176+
grep file1 err.log | grep "not up to date"
177177
'
178178

179179
# The next test will test the following:
@@ -189,7 +189,7 @@ test_expect_success 'reset --keep fails with changes in file it touches' '
189189
sed -e "s/line 1/changed line 1/" <file1 >file3 &&
190190
mv file3 file1 &&
191191
test_must_fail git reset --keep HEAD^ 2>err.log &&
192-
grep file1 err.log | grep "not uptodate"
192+
grep file1 err.log | grep "not up to date"
193193
'
194194

195195
test_expect_success 'setup 3 different branches' '

unpack-trees.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static const char *unpack_plumbing_errors[NB_UNPACK_TREES_ERROR_TYPES] = {
2929
"Entry '%s' would be overwritten by merge. Cannot merge.",
3030

3131
/* ERROR_NOT_UPTODATE_FILE */
32-
"Entry '%s' not uptodate. Cannot merge.",
32+
"Entry '%s' is not up to date. Cannot merge.",
3333

3434
/* ERROR_NOT_UPTODATE_DIR */
3535
"Updating '%s' would lose untracked files in it",
@@ -44,7 +44,7 @@ static const char *unpack_plumbing_errors[NB_UNPACK_TREES_ERROR_TYPES] = {
4444
"Entry '%s' overlaps with '%s'. Cannot bind.",
4545

4646
/* ERROR_SPARSE_NOT_UPTODATE_FILE */
47-
"Entry '%s' not uptodate. Cannot update sparse checkout.",
47+
"Entry '%s' is not up to date. Cannot update sparse checkout.",
4848

4949
/* ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN */
5050
"Working tree file '%s' would be overwritten by sparse checkout update.",

0 commit comments

Comments
 (0)