Skip to content

Commit 8812511

Browse files
fix
1 parent 9609291 commit 8812511

File tree

1 file changed

+1
-1
lines changed
  • src/sonic-build-hooks/hooks

1 file changed

+1
-1
lines changed

src/sonic-build-hooks/hooks/git

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ get_clone_path(){
4444

4545
main(){
4646
parse_config "$@"
47-
get_clone_path "$@"
4847

4948
# execute git.
5049
$REAL_COMMAND "$@"
@@ -55,6 +54,7 @@ main(){
5554
exit $result
5655
fi
5756

57+
get_clone_path "$@"
5858
pushd $clone_PATH &> /dev/null
5959
commit_latest=`$REAL_COMMAND log -n 1 | head -n 1| awk '{print$2}'`
6060
[ -f $version_file ] && commit=`grep $URL $version_file | awk -F, '{print$2}'`

0 commit comments

Comments
 (0)