File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
5
- # Check if a branch parameter is provided
6
- BRANCH=" "
7
- if [ $# -gt 0 ]; then
8
- BRANCH=$1
9
- fi
10
-
11
5
if [ ! -d " ${DIR} " ]; then
12
6
echo ' ${REPO_NAME} could not be found' 1>&2
13
7
exit 1
@@ -21,13 +15,7 @@ source config.env
21
15
set +a
22
16
23
17
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}
31
19
32
20
# Apply patches to upstream repo if desired.
33
21
if [ -d " patches" ]; then
Original file line number Diff line number Diff line change 1
1
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"
You can’t perform that action at this time.
0 commit comments