Skip to content

Commit 0446e5e

Browse files
committed
Latest swagger command from upstream.
1 parent ced2c0e commit 0446e5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/swagger

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ fi
1414

1515
(
1616
cd swagger-codegen
17+
if [[ "${#SWAGGER_CODGEN_REVISION}" -lt 40 ]]; then
18+
# resolve git tags / branch names
19+
SWAGGER_CODGEN_REVISION=$(git show "$SWAGGER_CODGEN_REVISION" --format="%H")
20+
fi
1721
if [[ $(cat .git/HEAD) != "$SWAGGER_CODGEN_REVISION" ]]; then
1822
git fetch
1923
git checkout "$SWAGGER_CODGEN_REVISION"

0 commit comments

Comments
 (0)