From 863b05e572d4b84b455025212da645c6882f2ad0 Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Tue, 6 Jul 2021 12:52:45 +0800 Subject: [PATCH] Bug fix for reproducible build (#8061) --- src/sonic-build-hooks/hooks/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-build-hooks/hooks/git b/src/sonic-build-hooks/hooks/git index 644a01d5fe..2101358379 100755 --- a/src/sonic-build-hooks/hooks/git +++ b/src/sonic-build-hooks/hooks/git @@ -57,7 +57,7 @@ main(){ get_clone_path "$@" pushd $clone_PATH &> /dev/null commit_latest=`$REAL_COMMAND log -n 1 | head -n 1| awk '{print$2}'` - [ -f $version_file ] && commit=`grep $URL $version_file | awk -F, '{print$2}'` + [ -f $version_file ] && commit=`grep $URL $version_file | awk -F== '{print$2}'` # control version or record version file if [[ $ENABLE_VERSION_CONTROL_GIT == "y" ]];then