Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit b10ee9d

Browse files
committed
Save upstream commit hash when updating sdk
1 parent 614ae72 commit b10ee9d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/update_sdk.cmd

+6
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ cd /D "%~dp0\temp"
1212

1313
git clone https://github.com/Azure/azure-iot-sdks.git --recursive
1414

15+
cd azure-iot-sdks
16+
echo Upstream HEAD @ > metadata.txt
17+
git rev-parse HEAD >> metadata.txt
18+
1519
cd "%~dp0\temp"
1620

21+
copy "%~dp0\temp\azure-iot-sdks\metadata.txt" "%~dp0\sdk"
22+
1723
copy "%~dp0\temp\azure-iot-sdks\c\iothub_client\src\" "%~dp0\sdk"
1824
copy "%~dp0\temp\azure-iot-sdks\c\iothub_client\inc\" "%~dp0\sdk"
1925
copy "%~dp0\temp\azure-iot-sdks\c\serializer\src\" "%~dp0\sdk"

0 commit comments

Comments
 (0)