Skip to content

Commit

Permalink
[cherry-pick][202211]Enhance the check enum lock script (#1741) (#1742)
Browse files Browse the repository at this point in the history
* Enhance the check enum lock script
Why
workaround fix for git --work-tree=temp/ checkout ...
after checkout from other branch, data will be left in git

then in when running command from sonic-buildimage/rules/sairedis.dep, it will report
```
sonic-buildimage/rules/sairedis.dep
```

How
clean up the git env

Verify
run script



* enhance



---------

Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
  • Loading branch information
richardyu-ms authored Feb 8, 2023
1 parent 0031470 commit 7710e24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meta/checkenumlock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ set -e

rm -rf temp

mkdir temp
sairepo=`git remote get-url origin`

git --work-tree=temp/ checkout origin/master inc
git --work-tree=temp/ checkout origin/master experimental
git clone $sairepo temp

echo "Checking for possible enum values shift (current branch vs origin/master) ..."

Expand Down

0 comments on commit 7710e24

Please sign in to comment.