Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liushilongbuaa committed Jan 20, 2021
1 parent 9609291 commit 8812511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-build-hooks/hooks/git
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ get_clone_path(){

main(){
parse_config "$@"
get_clone_path "$@"

# execute git.
$REAL_COMMAND "$@"
Expand All @@ -55,6 +54,7 @@ main(){
exit $result
fi

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}'`
Expand Down

0 comments on commit 8812511

Please sign in to comment.