Skip to content

Commit 32112eb

Browse files
Fix rebuild-ui.sh script (jaegertracing#6098)
## Which problem is this PR solving? - Resolves jaegertracing#6097 ## Description of the changes - run `git fetch --unshallow` only on shallow repos ## How was this change tested? - ## Checklist - [X] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [X] I have signed all commits - [ ] I have added unit tests for the new functionality - [ ] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` --------- Signed-off-by: Andreas Gerstmayr <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]>
1 parent bec885e commit 32112eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/rebuild-ui.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ set -euxf -o pipefail
77

88
cd jaeger-ui
99

10-
git fetch --all --unshallow --tags
10+
if [[ "$(git rev-parse --is-shallow-repository)" == "true" ]]; then
11+
git fetch --unshallow
12+
fi
13+
git fetch --all --tags
1114
git log --oneline --decorate=full -n 10 | cat
1215

1316
last_tag=$(git describe --tags --dirty 2>/dev/null)

0 commit comments

Comments
 (0)