mirror of https://github.com/harness/drone.git
feat: [CDE-182]: Fixing clone check. (#2259)
* feat: [CDE-182]: Fixing clone check.pull/3545/head v1.0.1-gitspaces-beta
parent
d159df6b7b
commit
bed2659e03
|
@ -19,8 +19,8 @@ if ! command -v git >/dev/null 2>&1; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Clone the repository only if it doesn't exist
|
||||
if [ ! -d "$repo_name" ]; then
|
||||
# Clone the repository inside the working directory if it doesn't exist
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "Cloning the repository..."
|
||||
git clone "$repo_url" --branch "$branch" .
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue