Skip to content

Commit 1c3d63b

Browse files
committed
[FAB-7675] fix make verify
The refactor done in FAB-7649 inverted the match for go files in the packages_diff function. This corrects the behavior and removes an unnecessary local variable. Change-Id: I4aba1aef7fb0775f8b73484c1960c41e01ba3967 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 78373e9 commit 1c3d63b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unit-test/run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ serial_packages=(
3434

3535
# obtain packages changed since some git refspec
3636
packages_diff() {
37-
local ref="${1:-HEAD}"
38-
3937
git -C "${GOPATH}/src/github.com/hyperledger/fabric" diff --no-commit-id --name-only -r "${1:-HEAD}" |
40-
grep -Ev '.go$|^vendor/|^build/' | \
38+
grep '.go$' | grep -Ev '^vendor/|^build/' | \
4139
sed 's%/[^/]*$%/%' | sort -u | \
4240
awk '{print "github.com/hyperledger/fabric/"$1"..."}'
4341
}

0 commit comments

Comments
 (0)