File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -114,16 +114,16 @@ steps:
114
114
fi
115
115
116
116
# Checkout. SourceCaching? or not.
117
- if [ -e "$HOME/project /<< parameters.path >>/.git" ]; then
117
+ if [ -e "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>/.git" ]; then
118
118
echo 'Fetching into existing repository'
119
119
existing_repo='true'
120
- cd "$HOME/project /<< parameters.path >>"
120
+ cd "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>"
121
121
git remote set-url origin "$CIRCLE_REPOSITORY_URL" || true
122
122
else
123
123
echo 'Cloning git repository'
124
124
existing_repo='false'
125
- mkdir -p "$HOME/project /<< parameters.path >>"
126
- cd "$HOME/project /<< parameters.path >>"
125
+ mkdir -p "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>"
126
+ cd "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>"
127
127
git clone ${clone_tag_args} --depth << parameters.depth >> $CIRCLE_REPOSITORY_URL .
128
128
fi
129
129
Original file line number Diff line number Diff line change @@ -100,16 +100,16 @@ steps:
100
100
git config --global gc.auto 0 || true
101
101
102
102
# Checkout. SourceCaching? or not.
103
- if [ -e "$HOME/project /<< parameters.path >>/.git" ]; then
103
+ if [ -e "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>/.git" ]; then
104
104
echo 'Fetching into existing repository'
105
105
existing_repo='true'
106
- cd "$HOME/project /<< parameters.path >>"
106
+ cd "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>"
107
107
git remote set-url origin "$CIRCLE_REPOSITORY_URL" || true
108
108
else
109
109
echo 'Cloning git repository'
110
110
existing_repo='false'
111
- mkdir -p "$HOME/project /<< parameters.path >>"
112
- cd "$HOME/project /<< parameters.path >>"
111
+ mkdir -p "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>"
112
+ cd "$CIRCLE_WORKING_DIRECTORY /<< parameters.path >>"
113
113
git clone << parameters.clone_options >> $CIRCLE_REPOSITORY_URL .
114
114
fi
115
115
You can’t perform that action at this time.
0 commit comments