Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to disable recursive clone #764

Closed
wants to merge 1 commit into from
Closed

Add an option to disable recursive clone #764

wants to merge 1 commit into from

Conversation

msteinert
Copy link

This change adds the following configuration item to .drone.yml:

git:
  recursive: false

If the item is left out then the default is true, i.e. perform a recursive clone.

I couldn't find where to add the documentation for the new configuration (granted I didn't do an exhaustive search). If you point it out I can update that.

I'm not even sure if you'll be interested in this change, however it was quite useful for me today!

@@ -557,7 +557,7 @@ func TestWriteBuildScript(t *testing.T) {
f.WriteEnv("CI_PULL_REQUEST", "123")
f.WriteHost("127.0.0.1")
f.WriteFile("$HOME/.ssh/id_rsa", []byte("ssh-rsa AAA..."), 600)
f.WriteCmd("git clone --depth=0 --recursive git:https://github.com/drone/drone.git /var/cache/drone/github.com/drone/drone")
f.WriteCmd("git clone --depth=0 git:https://github.com/drone/drone.git /var/cache/drone/github.com/drone/drone")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't like this change... But in the spirit of --depth=0 it seemed appropriate. Let me know if there is a better way!

This change adds the following configuration item to .drone.yml:

    git:
      recursive: false

If the item is left out then the default is `true`, i.e. perform a
recursive clone.
@vtolstov
Copy link

vtolstov commented Sep 9, 2015

as of 0.4.0 version this is already implemented, may be close this ?

@msteinert
Copy link
Author

Sounds good to me.

@msteinert msteinert closed this Sep 9, 2015
@msteinert msteinert deleted the git-recursive branch December 5, 2015 16:52
bot-harness pushed a commit that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants