]> git.ipfire.org Git - thirdparty/git.git/blame - t/t1009-read-tree-new-index.sh
l10n: it.po: update the Italian translation for Git 2.24.0 round #2
[thirdparty/git.git] / t / t1009-read-tree-new-index.sh
CommitLineData
db137fe9
AJ
1#!/bin/sh
2
3test_description='test read-tree into a fresh index file'
4
5. ./test-lib.sh
6
7test_expect_success setup '
8 echo one >a &&
9 git add a &&
10 git commit -m initial
11'
12
13test_expect_success 'non-existent index file' '
14 rm -f new-index &&
15 GIT_INDEX_FILE=new-index git read-tree master
16'
17
18test_expect_success 'empty index file' '
19 rm -f new-index &&
20 > new-index &&
21 GIT_INDEX_FILE=new-index git read-tree master
22'
23
24test_done
25