Skip to content

Commit 36d40da

Browse files
author
Clément Le Provost
committed
[doc] Fix Git repository URL
We now obtain it dynamically; this is safer. [ci skip]
1 parent 70d52d2 commit 36d40da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/make-doc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e # fail on first error
66
SELF_ROOT=$(cd $(dirname "$0") && pwd)
77
PROJECT_ROOT=$(cd "$SELF_ROOT"/.. && pwd)
88

9-
GIT_REPO_NAME="algolia/algoliasearch-helper-swift"
9+
GIT_REPO_URL=$(cd "$PROJECT_ROOT" && git remote get-url origin)
1010
BRANCH_NAME="gh-pages"
1111
DST_DIR="$PROJECT_ROOT/build/doc"
1212

@@ -28,7 +28,7 @@ if [[ -d "$DST_DIR" ]]; then
2828
else
2929
echo "No Git checkout found; cloning"
3030
mkdir -p $(dirname "$DST_DIR")
31-
git clone [email protected]:$GIT_REPO_NAME -b "$BRANCH_NAME" --single-branch "$DST_DIR"
31+
git clone "$GIT_REPO_URL" -b "$BRANCH_NAME" --single-branch "$DST_DIR"
3232
fi
3333

3434
# Make the documentation

0 commit comments

Comments
 (0)