Skip to content

Commit 7ee6376

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9861b64 commit 7ee6376

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

git-filter-branch.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ test -s "$tempdir"/heads ||
252252

253253
GIT_INDEX_FILE="$(pwd)/../index"
254254
export GIT_INDEX_FILE
255-
git read-tree || die "Could not seed the index"
256255

257256
# map old->new commit ids for rewriting parents
258257
mkdir ../map || die "Could not create map/ directory"

0 commit comments

Comments
 (0)