Skip to content

Commit 4b65814

Browse files
GODRIVER-3334 Remove branching logic
1 parent bdea0ad commit 4b65814

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.evergreen/fetch-repo.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
set -eu
44

5-
# Check if a branch parameter is provided
6-
BRANCH=""
7-
if [ $# -gt 0 ]; then
8-
BRANCH=$1
9-
fi
10-
115
if [ ! -d "${DIR}" ]; then
126
echo '${REPO_NAME} could not be found' 1>&2
137
exit 1
@@ -21,13 +15,7 @@ source config.env
2115
set +a
2216

2317
rm -rf ${REPO_NAME}
24-
25-
# Clone the repository, with an optional branch
26-
if [ -n "${BRANCH}" ]; then
27-
git clone --branch "${BRANCH}" "${CLONE_URL}"
28-
else
29-
git clone "${CLONE_URL}"
30-
fi
18+
git clone ${CLONE_URL}
3119

3220
# Apply patches to upstream repo if desired.
3321
if [ -d "patches" ]; then

langchaingo-golang/config.env

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
REPO_NAME=langchaingo
2-
CLONE_URL="https://github.com/prestonvasquez/langchaingo.git"
3-
BRANCH="GODRIVER-3345"
2+
CLONE_URL=" -b GODRIVER-3345 --single-branch https://github.com/prestonvasquez/langchaingo.git"

0 commit comments

Comments
 (0)