Skip to content

Commit 3226725

Browse files
avargitster
authored andcommitted
cache-tree tests: remove unused $2 parameter
Remove the $2 paramater. This appears to have been some work-in-progress code from an earlier version of 9c4d6c0 (cache-tree: Write updated cache-tree after commit, 2014-07-13) which was left in the final version. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3f96d75 commit 3226725

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

t/t0090-cache-tree.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ cmp_cache_tree () {
1919
# correct.
2020
generate_expected_cache_tree_rec () {
2121
dir="$1${1:+/}" &&
22-
parent="$2" &&
2322
# ls-files might have foo/bar, foo/bar/baz, and foo/bar/quux
2423
# We want to count only foo because it's the only direct child
2524
git ls-files >files &&
@@ -30,10 +29,9 @@ generate_expected_cache_tree_rec () {
3029
for subtree in $subtrees
3130
do
3231
cd "$subtree"
33-
generate_expected_cache_tree_rec "$dir$subtree" "$dir" || return 1
32+
generate_expected_cache_tree_rec "$dir$subtree" || return 1
3433
cd ..
35-
done &&
36-
dir=$parent
34+
done
3735
}
3836

3937
generate_expected_cache_tree () {

0 commit comments

Comments
 (0)