filter-branch: remove an unnecessary use of 'git read-tree'
The intent of this particular call to 'git read-tree' was to fill an index. But in fact, it only allocated an empty index. Later in the program, the index is filled anyway by calling read-tree with specific commits, and considering that elsewhere the index is even removed (i.e., it is not relied upon that the index file exists), this first call of read-tree is completely redundant. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Dec 15, 2009 at 09:42 UTC
7ee6376938919d36a9f8d45dd3ae20f0cb494574
1 file changed
-1
git-filter-branch.sh
-1
@@ -252,7 +252,6 @@ test -s "$tempdir"/heads ||
252
253
GIT_INDEX_FILE="$(pwd)/../index"
254
export GIT_INDEX_FILE
255
-git read-tree || die "Could not seed the index"
255
256
# map old->new commit ids for rewriting parents
257
mkdir ../map || die "Could not create map/ directory"